Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web technologies Questions | JavaScript Course Quiz 2 | Question 6

  • Last Updated : 10 May, 2019

What will be the output of the following code?

 let i = 30;
  if( i == 10 || i > 20){
  }else if( i == 5){
    console.log('Breaking up the code');

(A) Hola
(B) Breaking up the code
(C) Adios
(D) None of the above

Answer: (A)

Explanation: The if() statement will be executed if the condition in the bracket returns true otherwise the else statement is executed.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!