Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Symbol

// two symbols with the same description

const value1 = Symbol('hello');
const value2 = Symbol('hello');

console.log(value1 === value2); // false
 
PREVIOUS NEXT
Tagged: #JavaScript #Symbol
ADD COMMENT
Topic
Name
8+4 =