æ¦è¦ ES2015ã§ã¯UndefinedãNullãBooleanãNumberãStringãObjectã®ï¼ã¤ã®åã«å ãã¦ãæ°ããåSymbolãå°å ¥ãããã ã·ã³ãã«ã¯ããªããã£ãåã§ãæååã®ããã«ããããã£ã®ãã¼ã¨ãã¦ä½¿ããç¹å¾´ãæã¤ã æ¯ãèã ã·ã³ãã«ã¯Symbolã³ã³ã¹ãã©ã¯ã¿ãå¼ã¶ãã¨ã§ä½ããããã®æã«å¼æ°ã¨ãã¦æååã渡ãã°ååãæããããã¨ãã§ããã sym1 = Symbol() sym2 = Symbol('name') typeofæ¼ç®åã§è©ä¾¡ããã¨"symbol"ãè¿ãããã typeof sym1 // "symbol" Symbolã³ã³ã¹ãã©ã¯ã¿ãnewä»ãã§å¼ã³åºããã¨ã¯åºæ¥ãªãããã·ã³ãã«ãObjectã³ã³ã¹ãã©ã¯ã¿ã«æ¸¡ããã¨ã§ã©ãããããã¨ã¯ã§ããã new Symbol() // TypeError symobj = Object(sym2) ty
{{#tags}}- {{label}}
{{/tags}}