Reads the optional description passed to Symbol().
- Category: JS Symbol Reference — part of the JavaScript Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "Symbol.prototype.description" in one sentence, then back it up with a tiny example
// Symbol.prototype.description — minimal example
console.log("Symbol.prototype.description");Tip
Quick recall: "Symbol.prototype.description" — reads the optional description passed to Symbol().