Introduction to Javascript

Rima Wahid
3 min readMay 5, 2021

String.includes(): The method performs a case-sensitive search to determine whether one string may be found within another string, returning true or false as appropriate.

String.trim(): When we write string, sometimes a lot of space falls inside. We will use the trim method to remove this whitespace from both ends of a string.trimStart() removes whitespace from the beginning of a string and trimEnd() removes whitespace from the end of a string.

Math.ceil(): The ceiling of a decimal number is usually the next largest integer number after the decimal number like(3.52 // 4).In javascript ceil() method works the same.

Math.floor(): The floor of a decimal number usually returns the largest integer less than or equal to a given number like(3.52 // 4 or 3.05 //3).In javascript floor() method works the same.

Array.indexOf(): In javascript Arrays are used to hold a lot of data at once. Arrays element count start zero-indexed. like the first element is indexOf(0) ,secend element is indexOf(1) .

Array.concat(): Two or more arrays can be merged we use Concat() method.after merging we get a new array.

Array.pop(): pop() method are used to remove the last element from an array of element

Array.splice(): splice() method is used to remove or replace data from a specific index number of an array.

Array.find(): The find method is used to find an element from the array. From the array, we find the element which is greater than 10 .find methods first check the indexOf(0). If this element is greater than 10 then stop checking else if less than 10 then check the next index. when getting the element that is greater than 10 then stop method.



Rima Wahid

Throughout my career as a front end developer I've emphasized the importance of scalable and well documented.