P5 text() and console.log treat multiline strings differently

The next problem is that you are using backslashes which act as an escape character. You can get around this by declaring your string as “raw”:

let art= String.raw`Here’s some ASCII art:

     _______
    /       \  
   |  ___    | 
   | |___|   | 
   |         | 
    \______ / 
        |
 [=========]
  |   |   |    |
 /    |    \  /
/_____|_____\|

And here’s some more text. `;