What this snippet does
Static methods and fields are called on the class itself — they don't exist on instances and don't need new.
Expected output
3.14159 78.54 10
Why practise typing this
Typing classes code builds muscle memory for the symbols and indentation JavaScript uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.
More JavaScript practice
- class syntaxClasses · beginner
- class extendsClasses · intermediate
- private fieldsClasses · intermediate
- fluent chainingClasses · intermediate
- abstract methodsClasses · advanced
- mixinsClasses · advanced