I'm trying to create the random varible and them indicate that stops at the variable number.
var x;
function myFunction() {
var x = Math.floor(Math.random() * 2000);
}
sym.stop('x');
I'm trying to create the random varible and them indicate that stops at the variable number.
var x;
function myFunction() {
var x = Math.floor(Math.random() * 2000);
}
sym.stop('x');
X is a variable, not a string. Remove the ' ' around x on the last line.
var x = Math.floor(Math.random() * 2000);
sym.stop(x);