In JavaScript classes, you can create private properties and methods by prefixing them with a hash (#) symbol. These elements are then only accessible within the class itself, making them truly private. For example, `#myPrivateMethod()` or `#myPrivateProperty`.