Added missing punctuation.

This commit is contained in:
Zyranivia 2019-05-08 09:31:05 +02:00 committed by GitHub
parent 83b40bc408
commit c8ed6f16ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,12 +168,12 @@ Although, there are important differences.
alert(User); // class User { ... }
```
2. Class methods are non-enumerable
2. Class methods are non-enumerable.
A class definition sets `enumerable` flag to `false` for all methods in the `"prototype"`.
That's good, because if we `for..in` over an object, we usually don't want its class methods.
3. Classes always `use strict`
3. Classes always `use strict`.
All code inside the class construct is automatically in strict mode.