What will be the values of a and b variables after executing the following code snippet?
 function Test(param) { this.var1 = param; var var2 = 'World'; } var test = new Test('Hello'); var a = test.var1; var b = test.var2; 
    

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback