Interview Flashcards
1
Q
What is difference between java and JS?
A
JS is a scripting language, and Java is a programming language. JS runs on a JS engine. example V8.
2
Q
Can you differentiate between let and var?
A
Let is added in ES6.
Let is not hoisted var is hosited at the function level.
3
Q
Could you name some built-in methods in JavaScript?
A
We have many in-built methods.
for numbers, Number.parseInt
For internationalization, Intl.NumberFormat DateFormat.
For math, Math.sqrt , Math.Random.
For arrays, Arr.slice Splice reverse join