Daily JavaScript
15 subscribers
1 photo
1 link
Daily examples, coding challenges, and useful tips for developers.
Download Telegram
4. What programming language did the team use?
Anonymous Quiz
0%
A) Python
0%
B) Java
100%
C) JavaScript
0%
D) C#
6. What helped the team stay organized during the sprint?
Anonymous Quiz
100%
A) Teamwork
0%
B) Feedback
0%
C) Coffee
0%
D) Stakeholders
🧠 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.
4. Which of the following is a data type?
Anonymous Quiz
0%
A) Loop
100%
B) Boolean
0%
C) Compiler
6. Which data is mutable in JavaScript?
Anonymous Quiz
33%
A) String
67%
B) Array
0%
C) Number
8. What does the forEach() method usually cause?
Anonymous Quiz
0%
A) A new array
100%
B) A mutation
0%
C) An error
what is difference?
1. What's the output?

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