Creating a Focused Environment for JavaScript Language Study Purposes for beginers without Html

How can we create an environment to keep local notes for JS with the feature of on-note code executions and trying it in real-time instead of creating HTML pages or using browser consoles?

Can you propose a strong structural environment in technical?