top of page
  • ashley

Problems

I.

ex. 1

var x = 0;

while (x<5){

console.log(x);

x=x+1;

1 is 0 1 2 3 4 because if it were to do numbers 5 and up it would be a false statement.

ex 2:

var x = 0;

var y = 5;

while (x<5){

console.log(x+y);

x=x+1;

2 is 5 6 7 8 because in order for the statement to be true the numbers has to be 5 and higher

0 views0 comments

Recent Posts

See All

About me

https://codepen.io/ashleygc/pen/rNVxozd

artifact ap computer class

https://www.canva.com/design/DADzEBJJGmY/share/preview?token=bqc8LRDl3kjF2-WnOoV-wQ&role=EDITOR&utm_content=DADzEBJJGmY&utm_campaign=designshare&utm_medium=link&utm_source=sharebutton

Post: Blog2_Post
bottom of page