Javascript QUIZ entry 2

in javascriptquiz •  4 years ago 

Here are answers for question 1 seven part.

images.jpeg

Source

Code was :

     var x = 20 ;
  for(i=0; i<x ; i++)
        { 
          console.log("x is now " + x ); 
        }

Answer a :
In console we will see that
x is now 20 , x is now 19 ...... till x is now 11

Answer b :
In console we will see x is now 20.

Answer c :

In console we will see that :
X is now 20
X is now 20
X is now 19
X is now 17
X is now 14
X is now 10

Answer d :
In console we will see so many vulues and will reach to infinity.

this is my second entry for quiz.

Thanks.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE BLURT!