var quotes = ['blah1', 'blah2', 'blah4'];
var calc = Math.floor(Math.random()*quotes.length);
var quote = quotes[calc];
What is quotes[calc]
? What is it called and how it works?
var quotes = ['blah1', 'blah2', 'blah4'];
var calc = Math.floor(Math.random()*quotes.length);
var quote = quotes[calc];
What is quotes[calc]
? What is it called and how it works?