- what are the difference between double equal(==) and triple equal(===)?
Answer: both operators are used for comparing values. double equal compares only values, it does not care about data types. but triple equal compares data types with the values.
2.What are truth and falsy values?
3. Difference between undefined and null.
4.What is scope in js?
Answer: Scope determines the accessibility of variables.if something is declared inside a function that will be only accessible inside the function.it will not exist outside the function. there are two types of scopes. one is the local scope and the other is the global scope. the variable which is declared outside the function will be accessible inside the function and outside the function both.
Answer: If we call a function or return a function from another function then it will create a closed environment. they keep external variables as references. global can be made local with closures.
a.its a single-threaded language.
b.it can validate user input
c.it is a platform-independent language.
d.it has date time feature.
e.It can detect the user browser and os
9.what is DOM?
10.what is an API?
Answer: API stands for application programming interface. all browser has a set of built-in API's to support complex functionalities. we can access API data using get and post.
Hope you have enjoyed reading this article and found this article helpful.if you have enjoyed this then follow me on LinkedIn.