top of page
Writer's pictureValeria Dominguez :)

Problems

ex. 1

var x = 0;

while (x<5){

console.log(x);

x=x+1;

}

Example 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;

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

2 views0 comments

Recent Posts

See All

Week of May 4th

The webinars given out by the Advanced Placement Youtube Channel are helpful because they are going over the create task and are able to...

Psuedocode and Flowchart

Flowchart: https://www.lucidchart.com/invitations/accept/cc05222f-f576-4ded-b0b2-0e2d8596dbf7 Pseudocode: https://editor.p5js.org/Valeria...

Comments


images.jpeg
images.jpeg
33bbd948ce37bf4c73fbf029b5214fbb.jpg
3bbd948ce37bf4c73f29b5214fbb.jpg
bottom of page