Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 846 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 846 Bytes

JavaScript_Assessment1

Question 1

var y = 1; if(void function f(){}) { y += typeof f; } console.log(y);

Output In Screenshot ------------------------ Screenshot 2023-07-13 at 3 58 21 PM

Explanation---->

Question 2

(function () { var a = b = 3; })() ; console.log ("a defined? " + (typeof a !== 'undefined')); console.log ("b defined? " + (typeof b !== 'undefined'));

Output In ScreenShot ---->

Screenshot 2023-07-13 at 4 10 27 PM

Explanation---->

Question 3

console.log (typeof typeof 1);

Output In ScreenShot ---->