A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/quizzes/introduction-to-javascript/ below:

Quiz about Introduction To JavaScript

Which of the following correctly declares a constant variable PI with the value 3.14 in JavaScript?

What exactly does "Execution Context" mean in JavaScript?

What happens when variable shadowing occurs in JavaScript?

What will be the output of the following JavaScript code snippet?

let y = 30;

if (true) {

let y = 40;

console.log(y);

}

console.log(y);

What will be the output of this JavaScript code?

JavaScript
let a = 5;
function test() {
  let a = 10;
  console.log(a);
}
test();
console.log(a);

What will happen when this code runs?

HTML
<html>
  <body>
    <script>
      let userName = prompt("Enter your name:");
      alert("Your name is: " + userName);
    </script>
  </body>
</html>

Which of the following is true about the let keyword?

What will happen when this code is executed?

JavaScript
function greet(name) {
    return "Hello, " + name;
}
console.log(greet("Alisha"));

Consider the const declaration for an array:

const arr = [10, 20, 30];

arr[1] = 25;

console.log(arr);

What will be the output of the console.log(arr) statement?

JavaScript is a single-threaded language. What does that mean?

There are 10 questions to complete.

Take a part in the ongoing discussion


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4