| JavaScript question answers 101-120 | JavaScript question answers 141-160 | |
JavaScript Question Answers - 121-140 |
- It replaces all content instead of appending.
- It re-parses and rebuilds the DOM, which is slower.
- It can insert invalid or unsafe HTML.
- It removes existing event handlers.
window.innerWidth
It declares a three-dimensional array with one element, which itself contains an empty array inside another array.
this refers to the current execution context (the object that owns the function being executed).
Number.NEGATIVE_INFINITY is a special numeric value returned when a negative number is divided by zero.
document.write("Hello".italics());
JavaScript is a lightweight, interpreted, object-based scripting language used to make web pages interactive and dynamic.
Array.join(separator)
Array.lastIndexOf(element)
String.lastIndexOf(value)
document.getElementsByTagName("iframe").length
document.write("Click".link("https://example.com"));
Math.LN10
Math.LN2
str1.localeCompare(str2)
window.location
Math.log(x)
Math.LOG10E
Math.LOG2E
str.match(regex)
| JavaScript question answers 101-120 | JavaScript question answers 141-160 | |