{"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","height":"190","title":" JSX supports default parameters","version":"1.0","published":"2013-06-26 06:51:59","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20130626%2F1372283519\" title=\" JSX supports default parameters - Islands in the byte stream (legacy)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"categories":[],"author_name":"gfx","author_url":"https://blog.hatena.ne.jp/gfx/","description":"JSX\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u5b9f\u88c5\u3055\u308c\u307e\u3057\u305f\u3002 \u4eca\u307e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3044\u305f\u3082\u306e\u304c function foo(a : number, b : number) : void { // ... } function foo(a : number) : void { this.foo(a, 42); } \u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f*1\u3002 function foo(a : number, b : number = 42) : void { // ... } \u610f\u5473\u7684\u306b\u306f\u3001\u5f8c\u8005\u306f\u524d\u8005\u306e\u66f8\u304d\u65b9\u306esyntactic sugar\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306e\u5f0f\u3067this\u3092\u53c2\u7167\u3057\u305f\u308a\u8907\u96d1\u306a\u5f0f\u3092\u66f8\u3044\u305f\u308a\u3059\u2026","type":"rich","width":"100%","blog_title":"Islands in the byte stream (legacy)","blog_url":"https://gfx.hatenadiary.org/","url":"https://gfx.hatenadiary.org/entry/20130626/1372283519"}