7. Who gave feedback on the project?
Anonymous Quiz
0%
A) The designer
0%
B) The developer
100%
C) The stakeholders
0%
D) The manager
8. What happened during the review meeting?
Anonymous Quiz
0%
A) The project failed
0%
B) The code was deleted
100%
C) The project manager praised the team
0%
D) The sprint was cancelled
9. What does “deliverables” mean?
Anonymous Quiz
0%
A) Tasks that are not finished
100%
B) Results or products to be delivered
0%
C) Code errors
0%
D) Software bugs
10. When did the team deliver all results?
Anonymous Quiz
0%
A) After the deadline
100%
B) Before the deadline
0%
C) During the planning phase
0%
D) They didn’t deliver anything
🧠 Understanding JavaScript Execution and Data Types
When we write JavaScript code, every statement must follow the correct syntax. If the syntax is wrong, the compiler or the browser shows an error.
During execution, the JavaScript engine reads each expression and performs it step by step. This process happens in the runtime environment.
A variable can store any kind of value — a string, number, or boolean, and each of these is called a data type. When we create a variable using let or const, we perform an assignment. For example:
let age = 25;
Here, we assigned a number value to the variable age.
Some data in JavaScript are immutable, meaning they cannot be changed, like strings. Others are mutable, such as arrays and objects, which we can modify using methods like push() or pop().
When we work with data, we often need to filter, map, or loop through them using forEach. The map method creates a new array without changing the original one, while forEach usually causes a mutation, modifying existing data.
Understanding these concepts helps developers write clean, efficient, and bug-free code. Every function, loop, and variable plays an important role in the execution process of a program.
When we write JavaScript code, every statement must follow the correct syntax. If the syntax is wrong, the compiler or the browser shows an error.
During execution, the JavaScript engine reads each expression and performs it step by step. This process happens in the runtime environment.
A variable can store any kind of value — a string, number, or boolean, and each of these is called a data type. When we create a variable using let or const, we perform an assignment. For example:
let age = 25;
Here, we assigned a number value to the variable age.
Some data in JavaScript are immutable, meaning they cannot be changed, like strings. Others are mutable, such as arrays and objects, which we can modify using methods like push() or pop().
When we work with data, we often need to filter, map, or loop through them using forEach. The map method creates a new array without changing the original one, while forEach usually causes a mutation, modifying existing data.
Understanding these concepts helps developers write clean, efficient, and bug-free code. Every function, loop, and variable plays an important role in the execution process of a program.
1. What does the JavaScript engine do?
Anonymous Quiz
33%
A) It designs web pages
67%
B) It reads and executes the code
0%
C) It stores data
2. What happens if the syntax of a program is wrong?
Anonymous Quiz
0%
A) The program runs faster
100%
B) The compiler or browser shows an error
0%
C) The function becomes immutable
3. What is a variable used for?
Anonymous Quiz
100%
A) To store data
0%
B) To display text on a page
0%
C) To change the syntax
5. What does immutable mean?
Anonymous Quiz
0%
A) Something that can be changed
100%
B) Something that cannot be changed
0%
C) Something that runs automatically
7. What does the map() method do?
Anonymous Quiz
33%
A) It changes the original array
67%
B) It creates a new array
0%
C) It deletes data
8. What does the forEach() method usually cause?
Anonymous Quiz
0%
A) A new array
100%
B) A mutation
0%
C) An error
9. What is assignment in programming?
Anonymous Quiz
67%
A) Giving a value to a variable
33%
B) Changing a loop
0%
C) Deleting a function
10. What is the main difference between map() and forEach()?
Anonymous Quiz
100%
A) map creates a new array, forEach doesn’t
0%
B) forEach runs faster than map
0%
C) map deletes the array
1. What's the output?
function sayHi() { console.log(name); console.log(age); var name = 'Lydia'; let age = 21; } sayHi();
function sayHi() { console.log(name); console.log(age); var name = 'Lydia'; let age = 21; } sayHi();
Anonymous Quiz
0%
A: Lydia and undefined
0%
B: Lydia and ReferenceError
0%
C: ReferenceError and 21
100%
D: undefined and ReferenceError
2. What's the output?
for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 1); } for (let i = 0; i < 3; i++) { setTimeout(() => console.log(i), 1); }
for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 1); } for (let i = 0; i < 3; i++) { setTimeout(() => console.log(i), 1); }
Anonymous Quiz
50%
A: 0 1 2 and 0 1 2
0%
B: 0 1 2 and 3 3 3
50%
C: 3 3 3 and 0 1 2
3. What's the output?
const shape = { radius: 10, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius, }; console.log(shape.diameter()); console.log(shape.perimeter());
const shape = { radius: 10, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius, }; console.log(shape.diameter()); console.log(shape.perimeter());
Anonymous Quiz
50%
A: 20 and 62.83185307179586
50%
B: 20 and NaN
0%
C: 20 and 63
0%
D: NaN and 63
4. What's the output?
+true; !'Lydia';
+true; !'Lydia';
Anonymous Quiz
100%
A: 1 and false
0%
B: false and NaN
0%
C: false and false