Realated Questions
What will be the function of the following JavaScript code?
var scope = "global scope"; function checkscope() { var scope = "local scope"; function f() { return scope; } return f; }
If the following lines of code differ, what is the difference?
Code A:
!!(obj1 && obj2);
Code B:
(obj1 && obj2);
Which function is used to serialize an object into a JSON string in Javascript?