-
JavaScript Iterables
The protocol of iterations enables JavaScript objects to define and customize their iteration behavior like what values are looped over in for…of. Arrays are considered iterable. But, there are also other iterables (for instance, strings). Describing Symbol.iterator Let’s try to create an iterable. For instance, there is an object, which is not an array but can be suitable for for…of.…
-
CSS will-change Property
The will-change property gives a hint to the browsers how an element is expected to change in the near future. Optimizations should be set up before an element is changed. The will-change property was first named will-animate. The will-change property allows browsers to change an element’s scroll position, contents or more than one CSS property values. However, many properties will not have any…
-
CSS width Property
The CSS width property sets the width of an element. The width does not include border, padding or margin. The width property applies to all elements except non-replaced or inline elements, table rows and row groups (i.e. <thead>, <tfoot> and <tbody>). The property takes a CSS length (px, pt, em, and so on), a percentage, or the keyword auto. We should mention that the percentage used for…
-
JavaScript Array methods
In JavaScript, there exist a wide range of array methods. To give you more detailed and comprehensive information, we are going to split them into groups. Add/Remove Methods In chapter Arrays, we have already spoken about this group of methods. Among them are: In this chapter, we will speak about several other methods. Splice The first…
-
CSS widows Property
The widows property specifies the minimum number of lines of a block-level container that are left at the top of a page or column, leaving the remaining lines on the previous page or column. A widow is a single, separated line or word which appears at the top of the page or column. This property is usually…
-
JavaScript Arrays
In this chapter, we will explore JavaScript arrays. In JavaScript, you can use arrays for storing multiple values in a single variable. We can describe an array as a unique variable capable of holding more than one value simultaneously. There exist two syntaxes for generating an empty array: The second syntax is used most of…
-
CSS white-space Property
The white-space property specifies how the white space inside an element is handled. A white space can be a sequence of spaces or a line break. This property can be applied to any inline content within an element. Extra specified spaces are collapsed into one, newlines are removed, and lines are broken and wrap where necessary to…
-
JavaScript Strings
In JavaScript, the strings are used for storing and manipulating text. No separate type exists for a single character. The strings internal format is always UTF-16. A string represents zero or more characters that are written inside quotes. About Quotes We can distinguish single quotes, double quotes, and backticks: Double and single quotes are the same. Anyway, backticks are different.…
-
CSS visibility Property
The visibility property is used to specify the element that should be visible or hidden to the user. It has the following values: visible, hidden and collapses. When the element is set to “hidden”, the content of that tag becomes fully transparent, but it will display the place of it. But the descendant elements of the hidden…
-
Javascript Math
In JavaScript, Math is a built-in object. It has both properties and methods for mathematical functions and constants. Math operates with the Number type, but never with BigInt. Unlike other global objects, Math is not considered a constructor. The methods and properties of Math are fixed. You can call them by applying Math as an object without creating it. So, you refer to constant pi as Math.PI. Hence,…
