javascript is compiled at runtime js is single threaded to convert the string or characters into the number use parseInt(); any code in which a single lineis running at a time with sigle thread is called a synchronous code. each operation waits until the previous operation is completee
for using a particular library do require("library name");
setTimeout is a global asynchronous function if thread is busy with cpu functions then the input output operations will be in call stack after the cpufunctionis finished
in js construct does not require let keyword. and no need to declare the type of the function. Here for constructors use consructor word only not the class name
in static method there is not need to make an object the method can be called directly where as if not static then making of object is necessary
date is an inbuilt class in js which give us the benefot of using it for current date time or in different formats and egven featires such as timers etc
map is also an in built class which gives us the opportunity to set the key and the value that is map.set('name','Dhruv');
callback and settimeout approach are two different approaches to get things done in a while
promise returns an object of thepromise class