4
I am doing some exercises and one of them asks me to create a code that reproduces an "ASCII art", I read about and saw that it was a special character and I tried to insert the space in its Unicode form " s", "u0020", but without success. I saw some people talking about using regular expressions. I thank you already
<script>
document.write("XXXXX<br>");
for (var i =0;i<2;i++){
document.write("X X<br>")
};
document.write("XXXXX<br>");
</script>
XXXXX
X X
X X
XXXXX
Thanks Sam, I used the <pre> tag and worked!!
– Bruno Teles