“==” is a loose equality operator that compares two values for equality after converting them to a common type. “===” is a strict equality operator that compares two values for equality without converting them to a common type.
7. What is event bubbling, and how does it work?
“var” is a keyword that declares a variable with function scope. “let” and “const” are keywords that declare variables with block scope. “let” allows a variable to be reassigned, while “const” does not.
10. What is the difference between “async” and “defer” in script tags?
We can use attributes “async” and “defer” in script tags to control the loading and execution of scripts. “async” loads the script asynchronously, which means that it does not block the rendering of the page. “defer” loads the script asynchronously as well, but it waits until the page has finished parsing before executing the script.