🎁 Join my channel to get access to perks:
[ Ссылка ]
🧡 Hello All JavaScript Lovers Outhere!
Today you're going to learn about the String Object In JavaScript.
This tutorial is a series of videos, in each video we will discuss a method (or more) of the String Object in JavaScript.
In today's video, you're going to learn about the toString, and valueOf methods.
The toString() method of a string object returns a string representing the specified string.
The valueOf() method returns the primitive value of a String object.
🟢🟠 The string.toString().
🔷 Syntax :
toString()
🟢🟠 The string.valueOf ().
🔷 Syntax :
valueOf ()
toString :
The String object overrides the toString() method of the Object object; it does not inherit Object.prototype.toString(). For String objects, the toString() method returns a string representation of the object and is the same as the String.prototype.valueOf() method.
valueOf:
The valueOf() method of String returns the primitive value of a String object as a string data type. This value is equivalent to String.prototype.toString().
This method is usually called internally by JavaScript and not explicitly in code.
🌍 Social Media Links.
◾ Facebook : [ Ссылка ]
◾ Twitter : [ Ссылка ]
◾ Instagram : [ Ссылка ]
◾ GitHub : [ Ссылка ]
💲 Suppport the Channel
Paypal : [ Ссылка ]
Buy Me a Coffee: [ Ссылка ]
![](https://i.ytimg.com/vi/yHd0HY66uIY/maxresdefault.jpg)