Multiple ChoiceIntermediate 30s
Private Variables
Choose the best answer for: private data in JS (pre-#)
Options
- 1All object properties are private by default in JavaScript
- 2Closures can create truly private variables in pre-ES2022 JS
- 3Private variables require TypeScript and are impossible in JS
- 4JavaScript has no privacy mechanism at all for object state
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.