<!doctype html>
<html>
<head>
<link rel="stylesheet" href="lib/style.css">
<script src="lib/classPrivateProperties.js"></script>
</head>
<body>
<h1>Hello Plunker!</h1>
</body>
</html>
class Pasta {
#name = '';
constructor(name) {
this.#name = name;
}
get name() {
return this.#name;
}
}
const x = new Pasta('Rivioli');
console.log('Test');
console.log(x.name);