JavaScript Multiple choices


Total available count: 50
Subject - JavaScript Frameworks
Subsubject - JavaScript

What would be the result of  5+2+"3" in JavaScript?


 

 

 

 



D


Solution:-

JavaScript Arithmetic Operators:-
Arithmetic operators perform arithmetic on numbers (literals or variables).

The result of  5+2+"3" in JavaScript is as follows,

  1. Plus sign + is an arithmetic operator between 5 and 2 so the result of 5+2 is 7
  2. Number 3 in quotation mark before the arithmetic operation plus sign is added to the above number so the result is 7 + "3" = 73



Next 5 multiple choice(s)

1

Is JavaScript supports automatic type conversion?

2

What will the following code return:Boolean(x==="5") if x=5?

3

What will the following code return:Boolean(x!=="5") if x=5?

4

Which is a strict equality operator in JavaScript?

5

Inside which HTML element do we put the JavaScript?

Comments