Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Symbols Javascript


let sym2 = Symbol('foo')
let sym3 = Symbol('foo')
 
		 console.log(Symbol(sym2==sym3)); /*false, symbols are guaranteed to be unique*/
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Symbols #Javascript
ADD COMMENT
Topic
Name
9+2 =