Concatenation: Combining Texts
charAt and length - Analyzing Strings
toUpperCase & toLowerCase
includes, startsWith and endsWith - checking for a substring
Tidying Up Your Strings: trim, trimStart, and trimEnd
Extract a Part of a String - substring and slice
Splitting Strings and Joining Arrays
Replacing parts of a string - replace and replaceAll
Template Strings
padStart & padEnd: How to Pad a String with Characters
Repeating strings without loops - repeat()
Decimal Numbers
Integer and Floating Point Numbers
Large Numbers
The Sign of a Number and the Absolute value - abs & sign
Rounding Numbers with round(), ceil(), floor() and trunc()
Finding the Maximum and Minimum Values with max() and min()
Generating Random Numbers with random()
Square Roots and Exponentiation - sqrt and pow
Declaring variables with Arrays and Spread Operator
Combinining Arrays and Spread Operator
Accessing Array Elements with at()
Extract a Part of an Array - slice()
Checking if something exists in an Array - includes, indexOf and lastIndexOf
Joining elements of a list into a string
Reversing the order of the elements in an array - reverse()
Executing a function for each element - forEach()
Finding elements in an array - find, findIndex, findLast and findLastIndex
Filtering Arrays - filter()
Checking for something in an array - some() and every()
Changing array values - map()
Sorting Arrays - sort()
Adding and Removing elements from Arrays - splice()
Reducing Arrays - reduce() & reduceRight()
Declaring variables with Objects and Spread Operator
JSON - stringify() & parse()
Optional Chaining and Nullish Coalescing
Object Reference
Merging objects with assign()
Getting properties and values from an object - keys(), values(), entries() and fromEntries()
Controlling loopings - break and continue
Iterating over keys - for...in
Iterating over values - for...of
Working with dates and times
Date conversion methods
Formatting Dates - toLocaleString()
© 2024 - ®Mewters