🎁 Join my channel to get access to perks:
/ @codeexplained
🧡 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 : / code.explained.official
◾ Twitter : / code_explained
◾ Instagram : / code.explained.official
◾ GitHub : https://github.com/CodeExplainedRepo
💲 Suppport the Channel
Paypal : https://paypal.me/CodeExplained
Buy Me a Coffee: https://www.buymeacoffee.com/CodeExpl...
Watch video toString vs valueOf methods | String Object In JavaScript online without registration, duration hours minute second in high quality. This video was added by user Code Explained 17 August 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,502 once and liked it 64 people.