What will be the output of following code? var x = 1; { var x = 2; } alert(x);
Correct Answer: 2
Explanation:
Note: This Question is unanswered, help us to find answer for this one
PHP Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More PHP MCQ Questions
What is the value of 'n1' and 'n2' after executing the following code? var str = 'Finding foo in Foo and Bar'; var n1 = str.search('Foo'); var n2 = str.search(/Foo/i);
Valid syntax to create a function?
How do you create a connection to MySQL database in PHP?
Which are not a valid data type?
What is output? printName('James'); ?>
Which function exchanges all keys with their associated values in an array?
The PHP instruction header('Content-Type: text/plain') should be sent:
Which control structure should NOT be used to check for a condition being met?
Which PHP function closes an open SQLite database?
Which function returns the contents of the output buffer and empties the buffer?