how to move an ellipse along the x axis in javascript

JavaScript
let x = 10;
function draw(){
  background(200);
 ellipse(x,200,30,30);
  x=x+2;
}
Source

Also in JavaScript: