Assertion: factorial function | /r/HasProperty | console.log(p
Facets:
Source sentences:
text: * each of which will log 'p' */ var p = 5; function myFunc() { var p = 9; function decl() { console.log(p); } var expr = function() { console.log(p); }; var cons = new Function('\tconsole.log(p);'); decl(); expr(); cons(); } myFunc(); /