In the context of JavaScript execution, what is the role of an interpreter?
Introduction To Javascript
Question · Easy
Which statement best describes the difference between client-side and server-side JavaScript execution?
Which HTML element is used to embed JavaScript code directly within an HTML page?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
Where can you run a single line of JavaScript code directly inside a web browser without creating an HTML file?
What does the term 'source code' refer to in programming?
Which company or organization originally created the JavaScript language?
Question · Medium
What is the standardized specification on which the JavaScript language is based?
In a basic programming workflow, what is the purpose of a code editor or IDE?
What is the result of running console.log('Hello, World!'); in a JavaScript environment?
Why is it generally recommended to place a <script> tag referencing JavaScript just before the closing </body> tag?
What distinguishes compilation from interpretation as approaches to running source code?
Which of the following is a key responsibility of a programmer within the software development process?
What is a runtime environment in the context of executing JavaScript?
Which statement about high-level programming languages such as JavaScript is correct?
What does the term 'syntax' mean in a programming language?
When JavaScript code is embedded in an HTML page, in which order does the browser typically process multiple <script> elements without async or defer attributes?
Question · Hard
Which of the following best describes what an 'algorithm' is?
Which keyword declares a block-scoped variable whose value can be reassigned later?
Variables Data Types
What happens when you try to reassign a value to a variable declared with const, as in const x = 5; x = 10;?
What does the expression typeof null evaluate to in JavaScript?
Which of the following is NOT a primitive data type in JavaScript?
What is the result of the expression typeof NaN?
Given let n = 10n; what does typeof n return?
What is the difference between a variable that is declared but not assigned, and one that has been assigned the value null?
Which of the following is a valid JavaScript variable name?
What is the output of console.log(typeof 'hello' + ' world');?
Which escape sequence inserts a newline character inside a JavaScript string literal?
Which syntax correctly performs string interpolation to embed the variable name into a greeting?
What is the value of 'JavaScript'.length?
Which of these correctly creates an array containing three numbers?
Given the object const car = { make: 'Toyota', year: 2020 };, how do you read the make property?
What does Number('42px') evaluate to?
What is the result of parseInt('123abc')?
What does the expression String(true) return?
How do you write a single-line comment in JavaScript?
Within a block such as { let x = 1; }, what is variable shadowing?
What is hoisting as it applies to variables declared with var?
What does the strict equality operator === check that the loose equality operator == does not?
Operators User Interaction
What is the result of the expression 7 % 3?
What is the output of console.log('5' + 3)?
What is the output of console.log('5' - 3)?
What value does the expression true && false produce?
After let x = 5; x += 3;, what is the value of x?
What does the prompt() function return when the user types text and clicks OK?
What does the confirm() dialog box return?
What does the alert() function return after the user dismisses the dialog?
In the expression 2 + 3 * 4, why does the result equal 14 rather than 20?
Loading more…