<script>
class Test{
  #num = 10           //private attribute
  constructor() {
     this.id = 100    //public attribute
  }
}
let t = new Test()
alert(t.num)   // undefined is output
alert(t.id)    // 100 is output
</script>