What will be he output of the below script.x=4 '4';document.write(x); - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
58 followers study24x7 19 Apr 2020 10:28 AM study24x7 study24x7

What will be he output of the below script.<script type="text/javascript">
x=4+"4";

See more

A

4

B

44

C

8

D

Error

study24x7
Write a comment
  • Nidhi Gupta
  • Explanation : the number or any character inside double/single quotes is considered as string in javascript. So the correct Answer is : 4 4.
    Related Questions
    500+   more Questions to answer
    Most Related Articles