Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Strings</h1>
<h2>The toString() Method</h2>
<p>toString() returns the content of a string.</p>
<p>let result = text.toString() is the same as let result = text:</p>
<p id="demo"></p>
<script>
let text = "Hello World!";
let result = text;
document.getElementById("demo").innerHTML = result; 
</script>
</body>
</html>