ã¯ããã«
è¿å¹Žãããã°ã©ãã³ã°ã®ç¥èãæ±ããããè·çš®ãå¢ããŠããŸãããç¹ã«Webéçºã®åéã§ã¯ãJavaScriptãšããèšèªãäžå¿çãªåœ¹å²ãæãããŠããŸãããã®ã»ã¯ã·ã§ã³ã§ã¯ãJavaScriptã®åºæ¬çãªæŠå¿µãšãè³æ ŒååŸã®ã¡ãªããã«ã€ããŠè§£èª¬ããŸãã
JavaScriptãšã¯ïŒ
JavaScriptã¯ãWebããŒãžã«åçãªèŠçŽ ãè¿œå ããããã®ããã°ã©ãã³ã°èšèªã§ããäŸãã°ããã¿ã³ãã¯ãªãã¯ãããšãã®ã¢ã¯ã·ã§ã³ããã¹ã©ã€ãã·ã§ãŒã®ãããªã¢ãã¡ãŒã·ã§ã³ãªã©ãWebããŒãžäžã§ã®ã€ã³ã¿ã©ã¯ãã£ããªåäœãå®çŸããã®ãJavaScriptã®åœ¹å²ã§ãã
ããšããšã¯Netscapeãšãããã©ãŠã¶ã®ããã«éçºãããèšèªã§ããã®åŸãWebã®æšæºæè¡ãšããŠåºãæ¡çšãããããã«ãªããŸãããçŸåšã§ã¯ãã»ãšãã©ã®Webãã©ãŠã¶ã§ãµããŒããããŠãããWebéçºãåŠã¶äžã§é¿ããŠéããªãæè¡ãšãªã£ãŠããŸãã
è³æ ŒååŸã®ã¡ãªãã
æè¡ã®ç¿åŸã¯ãå®è·µãéããŠã®çµéšãæã䟡å€ããããšèšãããŠããŸããããããè³æ ŒãååŸããããšã«ã¯ä»¥äžã®ãããªã¡ãªããããããŸãã
- èªåã®ã¹ãã«ã蚌æããå ¬çãªèšŒææžãæã«å ¥ããããšãã§ããã
- å±¥æŽæžãè·åçµæŽæžã«èšèŒããããšã§ãå°±è·ã»è»¢è·æŽ»åã§ã®ã¢ããŒã«ãã€ã³ããšãªãã
- åŠç¿ã®ã¬ã€ãã©ã€ã³ãšããŠãè³æ Œè©Šéšã®ç¯å²ãåèã«ããããšã§ãå¹ççãªåŠç¿ãå¯èœãšãªãã
ç¹ã«æ°ããåéãæè¡ãåŠã¶éãã©ãããæãã€ããŠããã®ãè¿·ãããšãå€ãã§ããè³æ Œã®åŠç¿ã¬ã€ããææã¯ããã®ãããªæã®æéãšããŠéåžžã«åœ¹ç«ã¡ãŸãã
ãŸããè³æ Œãæã€ããšã§ãèªåã®ã¹ãã«ãä»è ã«äŒãããããªããŸããç¹ã«ãæè¡çãªèæ¯ãæããªã人ã ã«å¯ŸããŠãèªåã®èœåãã¢ããŒã«ããéã«ãè³æ Œã¯ä¿¡é Œæ§ã®ãã蚌æãšããŠæ©èœããŸãã
JavaScript è³æ Œã®äžèŠ§
ããã°ã©ãã³ã°ã®äžçã§ã¯ãæè¡ã®ç¿åŸã蚌æããããã®è³æ Œãæ°å€ãååšããŸããJavaScriptãäŸå€ã§ã¯ãªããããã€ãã®å ¬èªè³æ ŒãååšããŸãããã®ã»ã¯ã·ã§ã³ã§ã¯ãJavaScriptã®äž»èŠãªè³æ Œãšãã®ç¹åŸŽã«ã€ããŠè©³ãã解説ããŸãã
CIW JavaScript ã¹ãã·ã£ãªã¹ã
CIW JavaScript ã¹ãã·ã£ãªã¹ãã¯ãJavaScriptã®åºæ¬çãªç¥èãšæè¡ã蚌æããè³æ Œã§ãããã®è³æ ŒãååŸããããšã§ãWebããŒãžã®åçãªèŠçŽ ã®äœæããåºæ¬çãªã¢ããªã±ãŒã·ã§ã³ã®éçºèœåãæã£ãŠããããšã蚌æãããŸãã
è©Šéšã®å 容ã¯ãJavaScriptã®åºæ¬çãªææ³ãé¢æ°ããªããžã§ã¯ãæåã®æŠå¿µãªã©ãåçŽããäžçŽã¬ãã«ã®ç¥èãåãããŸããç¹ã«ãå®éã®ã³ãŒãã£ã³ã°çµéšãããæ¹ã«ã¯ãååŸãæ¯èŒç容æãªè³æ Œãšèšããã§ãããã
HTML5ãããã§ãã·ã§ãã«èªå®è©Šéš
HTML5ãããã§ãã·ã§ãã«èªå®è©Šéšã¯ãHTML5ã«é¢ããç¥èã ãã§ãªããJavaScriptãCSS3ã«é¢ããç¥èãåãããè³æ Œã§ãããã®è³æ Œãæã€ããšã§ãWebããŒãžã®ãã¶ã€ã³ãã¬ã€ã¢ãŠããããã«ã¯åçãªèŠçŽ ã®è¿œå ãªã©ãWebããŒãžå šäœã®å¶äœèœåãæã£ãŠããããšã蚌æãããŸãã
è©Šéšã®å 容ã¯ãHTML5ã®æ°ããã¿ã°ãå±æ§ãJavaScriptã䜿çšããã€ãã³ãåŠçãCSS3ã®ã¢ãã¡ãŒã·ã§ã³ããã©ã³ãžã·ã§ã³ãªã©ãWebããŒãžå¶äœã«é¢ããå¹ åºãç¥èãåãããŸãã
ãããã®è³æ Œã¯ãããããã®ã¬ãã«ãç®çã«å¿ããŠéžã¶ããšãã§ããŸããèªåã®ãã£ãªã¢ãã©ã³ãåŠç¿ç®çã«åãããŠãæé©ãªè³æ ŒãéžæããããšãéèŠã§ãã
JavaScript è³æ ŒååŸã®ããã®ã¹ããã
JavaScriptã®è³æ ŒãååŸããããã«ã¯ãããã€ãã®ã¹ããããèžãå¿ èŠããããŸãããã®ã»ã¯ã·ã§ã³ã§ã¯ãè³æ Œè©Šéšã®ç³ã蟌ã¿æ¹æ³ãããå¹æçãªåŠç¿æ³ããããŠè©Šéšåœæ¥ã®å¯ŸçãŸã§ã詳ãã解説ããŸãã
è³æ Œè©Šéšã®ç³ã蟌ã¿æ¹æ³
JavaScriptã®è³æ Œè©Šéšã¯ãå€ãã®å Žåããªã³ã©ã€ã³ã§ã®ç³ã蟌ã¿ãäž»æµãšãªã£ãŠããŸããå ¬åŒã®è©Šéšæ©é¢ã®ãŠã§ããµã€ãã«ã¢ã¯ã»ã¹ããå¿ èŠãªæ å ±ãå ¥åããããšã§ãç°¡åã«ç³ã蟌ãããšãã§ããŸãã
ç³ã蟌ã¿ã®éã«ã¯ãæ°åãäœæãé£çµ¡å ãªã©ã®åºæ¬æ å ±ã®ã»ããè©Šéšã®æ¥æãå Žæãéžæããå¿ èŠããããŸãããŸããè©Šéšæããªã³ã©ã€ã³ã§ã®æ¯æããäžè¬çã§ãã
å¹æçãªåŠç¿æ³ãšãªãœãŒã¹
JavaScriptã®è³æ Œè©Šéšãç®æãéãå¹æçãªåŠç¿æ³ãç¥ã£ãŠããããšã¯éåžžã«éèŠã§ãããŸããå ¬åŒã®ææãæš¡æ¬è©Šéšã掻çšããããšã§ãè©Šéšã®å 容ãåºé¡åŸåãææ¡ããããšãã§ããŸãã
ãŸãããªã³ã©ã€ã³ã«ã¯å€ãã®åŠç¿ãªãœãŒã¹ãååšããŸããç¹ã«ãç¡æã§æäŸãããŠãããã¥ãŒããªã¢ã«ãåç»ææã¯ãåå¿è ã«ãšã£ãŠéåžžã«åœ¹ç«ã¡ãŸããããããæ å ±ã®ä¿¡é Œæ§ã確èªããããšãå¿ããã«ã
ãªãœãŒã¹å | å 容 |
---|---|
MDN Web Docs | JavaScriptã®å ¬åŒããã¥ã¡ã³ããåºæ¬ããå¿çšãŸã§å¹ åºãåŠã¹ãã |
JavaScript.info | åå¿è åãã®ãã¥ãŒããªã¢ã«ãµã€ãããããããã解説ãç¹åŸŽã |
è©Šéšåœæ¥ã®å¯Ÿçãšã¢ããã€ã¹
è©Šéšåœæ¥ã¯ãååãªç¡ç ããšãããªã©ãã¯ã¹ããç¶æ ã§èšãããšã倧åã§ãããŸããè©ŠéšäŒå Žã«ã¯æ©ãã«å°çããç°å¢ã«æ £ããæéãæã€ããšãããããããŸãã
è©Šéšäžã¯ãæé管çãæèããããšãéèŠã§ããç¹ã«ãé£ããåé¡ã«æéãåãããããªãããã«æ³šæããŸãããããŸããæåŸã«å šãŠã®åé¡ãå確èªããæéã確ä¿ããããšãå¿ããã«ã
æåŸã«ãè©Šéšã¯ãããŸã§äžã€ã®è©äŸ¡æ¹æ³ã«éããŸãããããåæ Œã§ããªãã£ããšããŠãããã®çµéšã次ã«æŽ»ããããšã倧åã§ãã
è³æ ŒååŸåŸã®ãã£ãªã¢ãã¹
JavaScriptã®è³æ ŒãååŸããããšã¯ããšã³ãžãã¢ãšããŠã®äžã€ã®å€§ããªã¹ãããã§ãããããããã®åŸã®ãã£ãªã¢ãã¹ã¯ã©ã®ããã«å±éããŠããã®ã§ããããããã®ã»ã¯ã·ã§ã³ã§ã¯ãè³æ ŒååŸåŸã®åžå ŽäŸ¡å€ãå ·äœçãªä»äºã®äŸããããŠç¶ç¶çãªã¹ãã«ã¢ããã®æ¹æ³ã«ã€ããŠããã詳现ã«è§£èª¬ããŸãã
ãšã³ãžãã¢ãšããŠã®åžå ŽäŸ¡å€
JavaScriptã®è³æ Œãæã€ããšã¯ããšã³ãžãã¢ãšããŠã®åžå ŽäŸ¡å€ã倧ããåäžãããèŠå ã®äžã€ã§ããå€ãã®äŒæ¥ã¯ãæè¡ã®ç¿åŸã蚌æããè³æ Œãæã€ãšã³ãžãã¢ãé«ãè©äŸ¡ããŸããç¹ã«ã¹ã¿ãŒãã¢ãããäžå°äŒæ¥ã§ã¯ãå³æŠåãšããŠæŽ»èºã§ãã人æãæ±ããŠãããè³æ Œã¯ãã®èœåã®èšŒãšãªããŸãã
ãŸããããªãŒã©ã³ã¹ãšããŠæŽ»åããå Žåãè³æ Œã¯ã¯ã©ã€ã¢ã³ãã«å¯Ÿããä¿¡é Œãç¯ãæ段ãšãªããŸãããããžã§ã¯ãã®å泚競äºãæ¿ããäžãè³æ Œãæã€ããšã§ä»ã®ãšã³ãžãã¢ãšã®å·®å¥åãå³ãããšãã§ããã®ã§ãã
è³æ Œã掻ãããä»äºã®äŸ
JavaScriptã®è³æ Œã掻ãããŠå°±ããä»äºã¯éåžžã«å€å²ã«ããããŸããããã³ããšã³ããšã³ãžãã¢ãšããŠãäŒæ¥ã®å ¬åŒãŠã§ããµã€ããECãµã€ããSaaSãã©ãããã©ãŒã ã®ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ãŒã¹ãèšèšã»å®è£ ããä»äºãèããããŸãã
ãŸããããã¯ãšã³ããšã³ãžãã¢ãšããŠãNode.jsã䜿çšããAPIã®éçºããããŒã¿ããŒã¹ãšã®é£æºãæ åœããããšãå¯èœã§ããããã«ãJavaScriptã䜿çšããã¢ãã€ã«ã¢ããªã®éçºããIoTããã€ã¹åãã®ã¢ããªã±ãŒã·ã§ã³éçºãªã©ãå€æ§ãªåéã§ã®æŽ»èºãæåŸ ãããŸãã
ç¶ç¶çãªã¹ãã«ã¢ããã®æ¹æ³
æè¡ã®é²åã¯æ¢ãŸãããšãç¥ããŸãããJavaScriptã®è³æ ŒãååŸããåŸããæ°ãããã¬ãŒã ã¯ãŒã¯ãã©ã€ãã©ãªã®ç»å Žãæ°ããä»æ§ã®è¿œå ãªã©ãåŠã¶ã¹ãããšã¯å°œããŸããã
ç¶ç¶çãªã¹ãã«ã¢ããã®ããã«ã¯ãå®æçãªåŠç¿ãæ¬ ãããŸããããªã³ã©ã€ã³ã³ãŒã¹ãæžç±ãå©çšããŠãæ°ããæè¡ãåŠã¶ããšã¯ãã¡ãããå®éã«æãåãããŠå°èŠæš¡ãªãããžã§ã¯ããäœæããããšã§ãå®è·µçãªã¹ãã«ã磚ãããšãã§ããŸãã
ãŸããã³ãã¥ããã£ãå匷äŒã«åå ããããšã§ãä»ã®ãšã³ãžãã¢ãšã®äº€æµãæ·±ããææ°ã®ãã¬ã³ããããŠããŠãå ±æããããšã倧åã§ãã
å®éã®è³æ ŒååŸè ã®å£°
JavaScriptã®è³æ ŒãååŸããéçšã¯ã人ããããç°ãªãçµéšãæããããšããããŸãããã®ã»ã¯ã·ã§ã³ã§ã¯ãå®éã«è³æ ŒãååŸããæ¹ã ã®å£°ãå ã«ãæåäœéšãé£ããã£ãç¹ããããŠãã®ä¹ãè¶ãæ¹ã«ã€ããŠè©³ãã玹ä»ããŸãã
æåäœéšãšãã®ãã€ã³ã
ãJavaScriptã®è³æ Œè©Šéšã«åæ Œããéã®åã³ã¯ãèšèã«ã§ããªããã®ã§ãããç¹ã«ãæ¯æ¥ã®åŠç¿ã®ææãå®ãçµãã ç¬éãšããŠãéåžžã«äŸ¡å€ã®ããçµéšãšãªããŸãããããšãããè³æ ŒååŸè ã¯èªããŸãã
å€ãã®æåè ãæããæåã®ãã€ã³ãã¯ãç¶ç¶çãªåŠç¿ãšãæš¡æ¬è©Šéšã®æŽ»çšã§ããå ·äœçã«ã¯ãæ¯æ¥æ±ºãŸã£ãæéãèšããŠåŠç¿ããããšã§ãç¥èãå®çãããããšãã§ãããšèšããŸãããŸããæš¡æ¬è©Šéšãç¹°ãè¿ã解ãããšã§ãå®éã®è©Šéšã®é°å²æ°ãåºé¡åŸåãæŽãããšãã§ãããšã®ããšã
é£ããã£ãç¹ãšãã®ä¹ãè¶ãæ¹
äžæ¹ã§ãè³æ ŒååŸã®éçšã¯æ±ºããŠæ¥œãªãã®ã§ã¯ãããŸãããå€ãã®äººããç¹å®ã®ãããã¯ãåé¡ã«èŠããã çµéšãæã£ãŠããŸããäŸãã°ããéåæåŠçãã¯ããŒãžã£ã®æŠå¿µãé£ãããäœåºŠãã€ãŸãããããšãã声ãã
ããããé£ãããããã¯ã«çŽé¢ããéã®ä¹ãè¶ãæ¹ãšããŠãè€æ°ã®è³æãåç §ããããšããå®éã«ã³ãŒããæžããŠè©ŠãããšãæããããŸãããŸããã³ãã¥ããã£ããã©ãŒã©ã ã§è³ªåãããããšã§ãä»ã®åŠç¿è ããšãã¹ããŒãããã®ã¢ããã€ã¹ãåŸãããšãæå¹ã§ãã
æåŸã«ãè³æ ŒååŸã¯äžã€ã®ç®æšã«éããŸãããéèŠãªã®ã¯ããã®åŸã®å®åããããžã§ã¯ãã§ã®æŽ»çšã§ããè³æ ŒãååŸãããããšãã£ãŠãåŠã³ãæ¢ãããåžžã«æ°ããç¥èãæè¡ãè¿œæ±ãã姿å¢ã倧åã§ãã
ãŸãšã
ãã®èšäºãéããŠãJavaScriptã®è³æ Œã«é¢ããå€å²ã«ãããæ å ±ãæäŸããŸãããè³æ ŒååŸã®ã¡ãªããããå®éã®ååŸè ã®å£°ããããŠãã£ãªã¢ãã¹ã«ã€ããŠã®è©³çŽ°ãªæ å ±ãåŠã¶ããšãã§ããŸãããæåŸã«ããã®æ å ±ãããšã«ãJavaScriptã®è³æ ŒååŸã®äŸ¡å€ãšãä»åŸã®åŠç¿ããã£ãªã¢ã®é²ãæ¹ã«ã€ããŠãŸãšããŸãã
JavaScript è³æ ŒååŸã®äŸ¡å€
JavaScriptã®è³æ Œã¯ããšã³ãžãã¢ãšããŠã®æè¡åã蚌æããããã®äžã€ã®æ段ã§ããè³æ Œãæã€ããšã§ãå°±è·ã転è·æŽ»åæã«æå©ã«åãããšã¯ãã¡ãããããªãŒã©ã³ã¹ãšããŠã®æŽ»åã®å¹ ãåºãããŸãããŸããè³æ ŒååŸã®éçšã§åŸãããç¥èãçµéšã¯ãå®åã§ã®æŽ»åã«ãçŽçµããŸãã
ããããè³æ Œã ããå šãŠã§ã¯ãããŸãããå®éã®ãããžã§ã¯ãã§ã®çµéšããç¶ç¶çãªåŠç¿ãããšã³ãžãã¢ãšããŠã®æé·ãæ¯ããèŠå ãšãªããŸãã
ä»åŸã®åŠç¿ãšãã£ãªã¢ã®é²ãæ¹
è³æ ŒãååŸããåŸããæè¡ã®é²åã¯æ¢ãŸããŸãããæ°ãããã¬ãŒã ã¯ãŒã¯ãã©ã€ãã©ãªã®ç»å Žãæ°ããä»æ§ã®è¿œå ãªã©ãåŠã¶ã¹ãããšã¯å°œããªãã®ããã®åéã®ç¹åŸŽã§ãããã®ãããå®æçãªåŠç¿ããå®éã®ãããžã§ã¯ãã§ã®çµéšãç©ãããšã倧åã§ãã
ãŸãããã£ãªã¢ã®é²ãæ¹ã«ã¯å人ã®ç®æšã䟡å€èŠ³ã倧ãã圱é¿ããŸãã倧æäŒæ¥ã§ã®å®å®ãããã£ãªã¢ãæãæ¹ãããã°ãã¹ã¿ãŒãã¢ããã§ã®ææŠãæãæ¹ãããªãŒã©ã³ã¹ãšããŠã®æŽ»åãæãæ¹ãããŸããèªåã®ç®æšãæ確ã«ããããã«åãããåŠç¿ã掻åãé²ããããšããå å®ãããã£ãªã¢ãç¯ãããã®éµãšãªããŸãã