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

JavaScript_Methods

The document outlines various JavaScript methods for strings, arrays, and classes. It lists numerous string methods such as charAt(), includes(), and toUpperCase(), as well as array methods like concat(), filter(), and map(). Additionally, it explains that class methods are defined within the class body, with examples of constructor and static methods provided.

Uploaded by

cricteam352
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

JavaScript_Methods

The document outlines various JavaScript methods for strings, arrays, and classes. It lists numerous string methods such as charAt(), includes(), and toUpperCase(), as well as array methods like concat(), filter(), and map(). Additionally, it explains that class methods are defined within the class body, with examples of constructor and static methods provided.

Uploaded by

cricteam352
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

JavaScript String, Array, and Class Methods

String Methods

- charAt()

- charCodeAt()

- codePointAt()

- concat()

- includes()

- endsWith()

- indexOf()

- lastIndexOf()

- localeCompare()

- match()

- matchAll()

- normalize()

- padEnd()

- padStart()

- repeat()

- replace()

- replaceAll()

- search()

- slice()

- split()

- startsWith()

- substring()

- toLocaleLowerCase()

- toLocaleUpperCase()
- toLowerCase()

- toString()

- toUpperCase()

- trim()

- trimStart()

- trimEnd()

- valueOf()

Array Methods

- concat()

- copyWithin()

- entries()

- every()

- fill()

- filter()

- find()

- findIndex()

- findLast()

- findLastIndex()

- flat()

- flatMap()

- forEach()

- from()

- includes()

- indexOf()

- isArray()

- join()
- keys()

- lastIndexOf()

- map()

- of()

- pop()

- push()

- reduce()

- reduceRight()

- reverse()

- shift()

- slice()

- some()

- sort()

- splice()

- toLocaleString()

- toString()

- unshift()

- values()

Class Methods

Classes in JavaScript do not have predefined methods like strings and arrays.

Instead, methods are defined within the class body, such as constructor(), getters, and setters.

Here is an example:

class Example {

constructor(param) {

this.param = param;

}
method1() {

return this.param;

static staticMethod() {

return 'Static method called';

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy