Write Your JavaScript Code Here
Run
Black
Copy Code
// valueOf() :method is used to find out the primitive value of String object. This method is invoked by JavaScript automatically. Thus, there is no requirement to call it explicitly in the code. let srt="say my name"; console.log(srt.valueOf());
Output: