IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
JavaScript Advent Calendar 2010 6æ¥ç®ã®id:Constellationã§ã. ECMAScript5ã«ãªã£ã¦å¤§ããå¤æ´ãããã¨ããã°, strict mode, early error, Object extras, ããã¦Property Descriptorã®æ¦å¿µã§ã. ã¨ãããã¨ã§ä»åã¯ES5 PropertyDescriptorã«ã¤ãã¦ã¾ãã£ã¨åãã£ã¦ãã¾ããã¨ãããã¨ã§. Property Descriptorã¨ã¯ JavaScriptã®Objectã¯äºå®ä¸Hash Tableã§ã. ããã, key -> value ã¨ãã対å¿ã§Hash Tableã«æ ¼ç´ããã¦ããã®ãã¨ããã°ããã§ã¯ããã¾ãã. ãªããªã, EcmaScriptã«ã¯getter / setterãattributeãåå¨ããããã§ã. // getter / setter v
ã¯ããã« JavaScriptã¯ãªãã¸ã§ã¯ãæåè¨èªã§ãããããããã®ãªãã¸ã§ã¯ãã®æ§è³ªã¯ãä»ã«è¯ãç¥ããã¦ãããªãã¸ã§ã¯ãæåè¨èªã®JavaãC++ã¨å¤§ããç°ãªã£ã¦ãã¾ãã ããã§ãã®è¨äºã§ã¯ããªããã®ãããªéããããã®ããJavaScriptã«ããããªãã¸ã§ã¯ãæåã®è¨èªææ³ãè¦ã¦ããã¨å ±ã«ããã®éãã®æ ¹å¹¹ã§ãããããã¿ã¤ãã«ã¤ãã¦è§£èª¬ãã¦ããããã¨æãã¾ãã ãªãããã®è¨äºã¯JavaScriptã®è§£èª¬ã§ããããã®å 容ã¯ãæ¨æºä»æ§ã®ECMAScriptã§æ±ãããç¯å²ã«åºã¥ãã¦ãã¾ããå¾ã£ã¦ãåããECMAScriptãå ã«ãã¦ããè¨èªï¼JScriptãActionScriptï¼ã§ãéããå 容ã«ãªã£ã¦ãã¾ãã 対象èªè ããã°ã©ãã³ã°ã®åºæ¬çãªç¥èããªãã³ã«ãªãã¸ã§ã¯ããã¡ã½ããã¨è¨ã£ãåºç¤çãªæ¦å¿µã«ã¤ãã¦ã¯ãããã§ã¯è§£èª¬ãã¾ãããæä½éããªãã¸ã§ã¯ãæåããã°ã©ãã³ã°ã«ã¤ãã¦ç解ããã¦
404 Blog Not Found:javascript - ã«ã¯ã¯ã©ã¹ã¯ãªãã®éç®±ã®é ãã¤ã¤ãã¾ãããJavaScriptã«ã¯ã©ã¹ã¯ãªããã¨ãã表é¡ã®ä¸»å¼µèªä½ã¯åã£ã¦ããã¨æãã®ã§ãéç®±ã®é ã æåæ°ã«ãªã£ãã®ã¯ãåç §ãã®ééãã ã£ããã§ããã©ã調ã¹ããã¡ã«ããããã¨â¦ ãJavaScriptã«ãããã»ã¨ãã©å ¨ã¦ã®ãã¼ã¿ã¯ãªãã¸ã§ã¯ããã§ã¯ãªã 4 æ¦è¦ (Overview)ã«ããã¨ãããªããã£ãå¤ã¯ ããªããã£ãå¤ (primitive value) 㯠Undefined, Null, Boolean, Number, String åã®ãã¡ã®ä¸ã¤ ã¨ããããªãã¸ã§ã¯ã ãªãã¸ã§ã¯ã㯠Object åã®æ§æè¦ç´ ã§ãããåºåã®ãªãããããã£ã®éåä½ã§ãããããã®ããããã£ãããªããã£ãå¤ããªãã¸ã§ã¯ããé¢æ°ãå«ã ã¨ã¯æ確ã«åºå¥ããã¦ãã¾ããããããã£ï¼ã¡ã½ãããå«ãï¼ãæã¤ã®ã¯ãª
ãã£ã¨ã5th Editionã®ãã©ãããçºãã¦ã¿ã¦ã3rd Editionã®ä»æ§ã®ä¸åã¨æã£ã¦ããé¨åãæ¹åããã¦ãããã©ããã調ã¹ã¦ã¿ãã以ä¸ãv3ã¯3rd Editionãv5ã¯5th Editionã®ãã¨ã for inæã®inã®å³ã®ãã©ã¡ã¼ã¿ãnullã®å ´å Annexã«ãã¡ããã¨è¨è¿°ããã¦ããããv3ã§ã¯ for (var i in null) ã®ããã«inã®å³ã®ãã©ã¡ã¼ã¿ã«å¯¾ãã¦ToObject()ãå®è¡ãããããããããnullã®å ´åã«ã¯TypeErrorä¾å¤ãçºçããä»æ§ã«ãªã£ã¦ãããå®éã®ãã©ã¦ã¶ã®JavaScriptå®è£ ã§ã¯ãã®ãããªä¾å¤ãçºçãããã¨ã¯ãªããforæ¬ä½ãå®è¡ãããªãåä½ã«ãªã£ã¦ãããv5ã§ã¯ToObject()ãå®è¡ããåã«ããããnullãundefinedã§ãããããã§ãã¯ããè¨è¿°ã追å ããã¦ããã æã®ãªãé¢æ°æ¬ä½ v3ã§ã¯æã®ãªãé¢æ°æ¬ä½ã®æ±
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}