0% found this document useful (0 votes)
36 views

Both The Indexof, and The Lastindexof Methods Return - 1 If The Text Is Not Found. Also Indexof and Match Are Same

The document lists various string, number, and array methods in JavaScript including methods for manipulating strings like indexOf(), methods for converting values like parseInt(), random number methods for Math like random(), and array methods for manipulating elements like push() and pop(). It also provides brief descriptions for some methods like trim() and notes on indexOf() and match() being the same.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Both The Indexof, and The Lastindexof Methods Return - 1 If The Text Is Not Found. Also Indexof and Match Are Same

The document lists various string, number, and array methods in JavaScript including methods for manipulating strings like indexOf(), methods for converting values like parseInt(), random number methods for Math like random(), and array methods for manipulating elements like push() and pop(). It also provides brief descriptions for some methods like trim() and notes on indexOf() and match() being the same.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1) length

2) charAt()
3) charCodeAt()
4) concat()
5) fromCharCode()
6) indexOf()

Both the indexOf(), and the lastIndexOf() methods return -1 if the text is not found. Also

indexOf() and match() are same

7) lastIndexOf()
8) replace()
9) search()
10) split()
11) slice()
12) substr()
13) substring()
14) toLowerCase()
15) toUpperCase()
16) trim() Removes whitespaces in a string
1) parseInt()
2) parseFloat()
1) Math.random()
2) Math.max(param1, param2, param3,,param n)
3) Math.min()
4) Math.ceil()
5) Math.floor()
6) Math.round()
7) Math.pow(x,y) //Power of x raised to y
8) Math.abs(x)

9) Math.sqrt()
10) Math.sin(), Math.cos(), Math.tan(), Math.asin(), Math.acos(), Math.atan()
1) toString()
2) join()
3) push()
4) pop()
5) shift() //Not important
6) unshift() // Not important
7) sort()
8) reverse()
9) slice()

You might also like