• Post author:
  • Post category:Blog
  • Reading time:1 mins read
  • Post last modified:June 12, 2024

Which of the following is not a loop instruction in JavaScript?

  • for ... in
  • do ... while
  • for ... of
  • if ... else
Explanation & Hint:

The “if … else” statement is not a loop instruction in JavaScript. The “if … else” statement is a conditional statement used to perform different actions based on a condition. It does not involve repetition or looping over a set of values or elements. It allows you to specify different code blocks to be executed based on whether a condition is true or false.

For more Questions and Answers:

JavaScipt Essentials 1 (JSE) | JSE1 – Module 4 Test Exam Answers Full 100%

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments