Write Your JavaScript Code Here

// 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: