top of page

Problems

  • ashley
  • Nov 8, 2019
  • 1 min read

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

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=desi...

 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2019 by Ashley's Blog. Proudly created with Wix.com

bottom of page