JS Class Features - Interactive Sandbox | IconVault

Private fields, private methods, static blocks, getters and setters, inheritance, brand checks. Edit and run each in a sandboxed iframe. Free.

All tools

JS Class Features

Private fields, static blocks, inheritance in a sandbox

5 of 5 free uses left

Private fields

Fields declared with # are truly private: invisible to subclasses, destructuring and JSON.

5 of 5 free runs left.

Console output

No output yet

Press "Run in sandbox". Code executes in an isolated iframe, never touching this page.

Sandbox notes: the runner uses asandbox="allow-scripts" iframe with no Function constructor and no access to your page, cookies or network. Edit the code freely.

About this tool

IconVault's JS Class Features is a hands-on lab for modern JavaScript classes. Six lessons cover private fields and private methods, static initialization blocks, getters and setters with validation, inheritance with super, and the ergonomic brand check pattern, each with editable code and a plain-English explainer.

Press run and your code executes in a sandboxed iframe, completely isolated from the page, with console output shown instantly. Experiment freely: break things, fix them, and build real intuition. Everything is free and runs fully in your browser.

Frequently asked questions

Popular searches

javascript classesjs classjavascript class tutorialprivate fields javascriptjs private methodshash private javascriptstatic blocks javascriptstatic initialization blockjavascript getters settersjs getter setter examplejavascript inheritanceextends super javascriptclass inheritance jsjavascript class featuresmodern javascript classeses2022 classesprivate static javascriptbrand check javascript# in operatorergonomic brand checksjavascript encapsulationoop javascriptjavascript class constructorjs class fieldspublic class fieldsclass static fieldsjavascript mixinslearn javascript classesjavascript class examplesjavascript class cheat sheetjs class interview questionsprivate vs typescript privatetypescript private keywordjavascript class sandboxrun javascript onlinejs playgroundjavascript class extendssuper keyword javascriptmethod overriding jsjavascript prototype vs classare js classes syntactic sugarjavascript class best practiceswhen to use classes javascriptjavascript factory vs classclass expression javascriptanonymous class javascriptjavascript class namingstatic methods javascriptwhen to use static methodsjavascript class initializationclass fields browser supportprivate fields browser supportstatic blocks browser support

More tools

Coming soon

CLI

Coming soon

Figma plugin

Coming soon

VS Code extension

Coming soon

Chrome extension

Coming soon

AI icon generator

Coming soon

Team workspaces

Coming soon

View all 10+ tools →