3. Explain === operator?
=== is called as strict equality operator which returns true when the two operands are having the same value without any type conversion.
Content will be replaced everywhere
Cannot use like “appending to innerHTML”
When you use +=like “innerHTML = innerHTML + ‘html’” still the old content is replaced by html
The entire innerHTML content is re-parsed and build into elements, therefore its much slower
The innerHTML does not provide validation and therefore we can potentially insert valid and broken HTML in the document and break it
pop() method is similar as the shift() method but the difference is that the Shift method works at the start of the array.
pop() method take the last element off of the given array and returns it. The array on which is called is then altered.
The pop method removes the last element from an array and returns that value to the caller. pop is intentionally generic; this method can be called or applied to objects resembling arrays.
7. built-in method that sorts the elements of an array?
sort() method sorts the elements of an array. The sort method sorts the Array object in place; no new Array object is created during execution.
8. What is callback?