← back to all topics

Frontend

5 / 100
Already knew 44 Didn't Know 20

Please wait ..

JavaScript·easy Question

What's the difference between setTimeout and setInterval?

setTimeout is a function that executes a callback function after a specified amount of time. setInterval is a function that executes a callback function after a specified amount of time, and then repeats the execution of the callback function at every specified amount of time.

JavaScript·easy Question

What is the difference between == and ===?

The == operator checks for equality of value, but not equality of type. The === operator checks for equality of value as well as equality of type.

JavaScript·easy Question

What is the meaning of the keyword this in JavaScript?

The this keyword refers to the object it belongs to. It has different values depending on where it is used: In a method, this refers to the owner object. Alone, this refers to the global object. In a function, this refers to the global object. In a function, in strict mode, this is undefined. In an event, this refers to the element that received the event. Methods like call(), and apply() can refer this to any object.

© All rights reserved — cs.fyi