Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what does the symbol function do in javascript

var idk={test:true,[Symbol.toStringTag]:'e'}
consoel.log(idk)//e {test:true,[Symbol.toStringTag]:'e'}
idk.toString()//[object e]
 
PREVIOUS NEXT
Tagged: #symbol #function #javascript
ADD COMMENT
Topic
Name
3+7 =