Checks whether a value exists in the Set.
- Category: JS Set 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 "Set.prototype.has()" in one sentence, then back it up with a tiny example
// Set.prototype.has() — minimal example
console.log("Set.prototype.has()");Tip
Quick recall: "Set.prototype.has()" — checks whether a value exists in the Set.