What type of scope is present in JavaScript?
(a) Lexical
(b) Literal
(c) Both Lexical and Literal
(d) Local
I had been asked this question during an interview for a job.
This key question is from JavaScript Benchmarking and Logging with perfLogger topic in chapter Parsing, Benchmarking and Logging of JavaScript