Deprecated: Function wp_img_tag_add_loading_attr is deprecated since version 6.3.0! Use wp_img_tag_add_loading_optimization_attrs() instead. in /home/692487.cloudwaysapps.com/qjetrwsbsm/public_html/wp-includes/functions.php on line 5453

Deprecated: Function wp_get_loading_attr_default is deprecated since version 6.3.0! Use wp_get_loading_optimization_attributes() instead. in /home/692487.cloudwaysapps.com/qjetrwsbsm/public_html/wp-includes/functions.php on line 5453

Deprecated: Function wp_img_tag_add_loading_attr is deprecated since version 6.3.0! Use wp_img_tag_add_loading_optimization_attrs() instead. in /home/692487.cloudwaysapps.com/qjetrwsbsm/public_html/wp-includes/functions.php on line 5453

Deprecated: Function wp_get_loading_attr_default is deprecated since version 6.3.0! Use wp_get_loading_optimization_attributes() instead. in /home/692487.cloudwaysapps.com/qjetrwsbsm/public_html/wp-includes/functions.php on line 5453

What will print out when the following code runs?
 
  var i = 7;
  var j = 2;

  if(i < 7 || j < 5) {
    console.log("Hello");
  } else {
    console.log("Goodbye");
  }

Practice More Questions From: Module quiz: Introduction to JavaScript

Q:

You can run JavaScript in a web browser’s devtools console.

Q:

Which of the following are valid comments in JavaScript? Select all that apply.

Q:

Which of the following are valid data types in JavaScript? Select all that apply.

Q:

Which of the following is the logical AND operator in JavaScript?

Q:

Which of the following is the assignment operator in JavaScript?

Q:

How many times will the following code print the word ‘Hello’? for(var i = 0; i <= 5; i++) { console.log("Hello"); }

Q:

What will print out when the following code runs? var i = 3; var j = 5; if(i == 3 && j < 5) { console.log("Hello"); } else { console.log("Goodbye"); }

Q:

What will print out when the following code runs? var i = 7; var j = 2; if(i < 7 || j < 5) { console.log("Hello"); } else { console.log("Goodbye"); }

Q:

T​he result of !false is:

Q:

What does the operator symbol || represent in JavaScript?

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments