Use escape characters to display the text correctly. - Javascript String

Javascript examples for String:Quiz

Description

Use escape characters to display the text correctly.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
document.getElementById("demo").innerHTML = "this is a \"test\".";
</script>/*  ww  w. ja v  a 2  s  .com*/

</body>
</html>

Related Tutorials