private fields

3 moment(s) that assert this concept — showing 1–3 of 3

single sourceRests on a single channel — treat as a lead, verify independently
↣ how this spread over time →
provenance — click a node to open its encoding unit
[1] Chrome[2] Chrome[3] Chrome
showing 3 of 3 moments
Chrome for Developers · youtube · en
1The use of the `#` symbol in JavaScript class fields denotes private instance properties that are not accessible outside the class
“mark the fields as being private by using the `#` symbol. You can think of the hash as being as part of the field name.”
spoken · 427s · 2019-05-09
Chrome for Developers · youtube · en
2Private fields in JavaScript are actually inaccessible from outside the class body and trigger a SyntaxError when accessed externally
“private fields are actually private! This means they’re not accessible from outside the class body. When you try, you get a SyntaxError.”
spoken · 438s · 2019-05-09
Chrome for Developers · youtube · en
3JavaScript supports both public and private class fields in Chrome and Node.js
“Chrome supports both public and private class fields, and so does Node.js”
spoken · 495s · 2019-05-09