i
VOZIQ
Filter interviews by
I applied via Referral
Conduct the assessment we know theirs skills
Print prime numbers in a given range
Iterate through the range of numbers
Check if each number is prime
Print the prime numbers
var is function-scoped and let is block-scoped.
var declarations are hoisted to the top of their scope while let declarations are not.
var can be redeclared in the same scope while let cannot.
let is preferred for variable declaration in modern JavaScript.
Example: var x = 10; if (true) { var x = 20; // x is now 20 } console.log(x); // 20 let y = 10; if (true) { let y = 20; // y is now 20 } console.log(y); /
Top trending discussions
Data Analyst
29
salaries
| ₹4 L/yr - ₹9.6 L/yr |
Jr. Data Scientist
15
salaries
| ₹4 L/yr - ₹6 L/yr |
Junior Data Analyst
11
salaries
| ₹3 L/yr - ₹4.5 L/yr |
Data Science Intern
10
salaries
| ₹1 L/yr - ₹4 L/yr |
Software Engineer
7
salaries
| ₹2.4 L/yr - ₹5.6 L/yr |
Fractal Analytics
Tiger Analytics
AbsolutData
LatentView Analytics