filmov
tv
Javascript Interview Question, Guess the Output_1
Показать описание
#shorts #shortsvideo #javascript #programming #programmer #developer #GIStudio #gto
-----Output--------
Most of the developers incorrectly understand the statement var a = b = 3; to be shorthand for:
var b = 3;
var a = b;
But in fact, var a = b = 3; is actually shorthand for:
b = 3 ;
var a = b ;
Output of the code snippet would be:
a defined? false
b defined? true
-----Output--------
Most of the developers incorrectly understand the statement var a = b = 3; to be shorthand for:
var b = 3;
var a = b;
But in fact, var a = b = 3; is actually shorthand for:
b = 3 ;
var a = b ;
Output of the code snippet would be:
a defined? false
b defined? true