Question 2
Back to Exercise
Which statement about JavaScript is true?
- A It is statically typed like Java
- B It is dynamically typed and runs your code on a single thread with an event loop Correct
- C It must be compiled to an .exe before it can run
- D It can run only inside a web browser
Correct Answer: Option B
Variables carry no type, one call stack runs your code, and the event loop handles asynchronous work. Engines compile it just in time, and Node.js runs it outside the browser.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!