Skip to content
Sign upLog in
← Back to Community

"idle" game

Profile icon
DamDanielDaniel

I am trying to make it so anything contained in a console log is printed to the screen no matter what is contained inside even syntax

Voters
Profile icon
JohnPourner
Profile icon
DamDanielDaniel
Comments
hotnewtop
Profile icon
SixBeeps

Are you trying to have the text contained inside a console.log show up on the screen instead of the console window? I would use the innerHTML property.

Profile icon
DamDanielDaniel

@SixBeeps

no i want to just use console log to show whatever i put in to the brackets

Profile icon
ash15khng

You have a missing } at the end of line 7. If you add it the code should work.

Profile icon
DamDanielDaniel

@ash15khng

no i mean @ line 14 -54 with the text, i want to put in the console

Profile icon
ash15khng

@DamDanielDaniel
Oh, you can use strings using ` instead of ".
Example:

console.log(`hello line 2`);
Profile icon
DamDanielDaniel

@ash15khng

it SILL doesn't show / or \ properly it just hides some of them

Profile icon
DamDanielDaniel

@ash15khng

i worked it out thanks