Skip to content
dreamcode
dreamcode
Lesson
Practice · Classes
  1. Predict
  2. Arrange
  3. Fill in
+20 XP on finish
PREDICT · READ BEFORE YOU WRITE

What happens when compiling this code?

Trace the program the way the computer would, then make your call before running anything.

class Safe {
  private password = 'secret';
}
const s = new Safe();
console.log(s.password);