Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator).

Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator). Correct Answer Both false.toString() and String(false)

The three approaches for converting to string are: value.toString(),”” + value and String(value). A non-string can be converted in two ways without using a new operator false.toString () and String(false).
Bissoy MCQ

Related Questions

Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator)
What is the value returned by function compareTo() if the invoking string is less than the string compared?
What is the value returned by the function CompareTo() if the invoking string is less than the string compared?
What is the value returned by function compareTo() if the invoking string is greater than the string compared?