Special Characters do not work in my JavaScript Code. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Special Characters do not work in my JavaScript Code.

<script> var say_hello='Hello! \t I am a JavaScript Programmer '; document.write(say_hello); <script>

28th Sep 2018, 4:07 AM
Jahidul
Jahidul - avatar
1 Answer
0
Add this to your CSS (in body if you don't have a special place for it): white-space: pre; https://stackoverflow.com/questions/22670210/t-is-not-working-in-javascript
28th Sep 2018, 4:32 AM
Janningā­
Janningā­ - avatar