10 Important thing about JavaScript

Array length

let var x=[1,2,3,4]

Double equal vs Triple equal

123 == “123” (true)

Math.floor and Math.round

Math.floor and Math.round almost the same they all convert a float or double number into integer but in a different way.

concat()

String concatenation is one of the common things in any programing language. String concatenation means to add two or more strings and return a new string. Const str1 = “hello” Const str1 = “world” Console.log(str1.concat(str2)) // “hello world”

replace()

replace() method replaces apart from a string and it returns a new String.

find()

find() method will find the first value returns the value from the array. If it gets no passed value then it will return undefined.

charAt()

String chatAt() method is used to find a specific character from a string or we can say it find specific indexes value.

toLowerCase()

This method converts the string value to lowercase letters and the output string to lowercase .

toUpperCase()

This method converts the string value to uppercase letters and the output string to uppercase .

indexOf()

indexOf() is used to find a specific strings index number.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store