JavaScript String constructor property
- Iya kusa concat()
- Iya baya endsWith()
- Duba iyaka Manuwarin JavaScript String
Definition and usage
constructor
properties return the function that creates the string prototype.
For JavaScript strings, the constructor returns:
function String() { [native code] }
instance
Get the string constructor:
let message = "Hello World!"; let text = message.constructor;
grammar
string.constructor
return value
function String() { [native code] }
browser support
constructor
wani akwai ES1 (ES1) harsa.
Dallan ba ce girmi ayyan ES1 (JavaScript 1997):
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Gudanarwa | Gudanarwa | Gudanarwa | Gudanarwa | Gudanarwa | Gudanarwa |
- Iya kusa concat()
- Iya baya endsWith()
- Duba iyaka Manuwarin JavaScript String