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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly