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
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #JavaScript #Symbol
ADD COMMENT
Topic
Name
1+2 =