Type coercion is the process of converting value from one type to another when doing implicitly. Since javascript is loosely type language, any primitive or object…
Hoisting in javascript is default behavior of moving declaration to the top of the scope. This behavior some time makes more confusion. However, hoisting can…