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

Warning: include(./views/auth.php): failed to open stream: Permission denied in /var/www/html/live/loginRightSlider.php on line 18

Warning: include(): Failed opening './views/auth.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/live/loginRightSlider.php on line 18
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