Ask coding questions

← Back to all posts
How to you import os for java script (only JavaScript, no HTML or CSS)
[deleted]

I want to make a game, but to remove the early printed lines i know by Python that you can import os, but how to to this in JavaScript?

Answered by InvisibleOne (2996) [earned 5 cycles]
View Answer
Comments
hotnewtop
InvisibleOne (2996)

os can't really be used in JavaScript as it's a python package. To clear the console in JavaScript, I believe you use console.clear() but I'll check and make sure.