{"id":1151,"date":"2025-03-10T14:38:43","date_gmt":"2025-03-10T05:38:43","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/route\/1151\/"},"modified":"2025-04-10T14:47:38","modified_gmt":"2025-04-10T05:47:38","slug":"1151","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/1151\/","title":{"rendered":"\u30102025\u5e74\u7248\u3011AI \u00d7 JavaScript\uff5cAI\u6d3b\u7528\u3067\u958b\u767a\u304c10\u500d\u901f\u304f\u306a\u308b\u6280\u8853\uff06\u30d7\u30ed\u30f3\u30d7\u30c810\u9078"},"content":{"rendered":"<div>\n<h2>ChatGPT\u3092\u201cJavaScript\u958b\u767a\u306e\u76f8\u68d2\u201d\u306b\u3057\u3088\u3046<\/h2>\n<p>JavaScript\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u3001\u3053\u3093\u306a\u3053\u3068\u3067\u60a9\u3093\u3060\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/p>\n<ul>\n<li>\n<p>\u975e\u540c\u671f\u51e6\u7406\u306e\u30d0\u30b0\u3001\u7406\u7531\u304c\u308f\u304b\u3089\u306a\u3044<\/p>\n<\/li>\n<li>\n<p>DOM\u64cd\u4f5c\u3001\u3084\u308a\u65b9\u304c\u5197\u9577\u3067\u9762\u5012<\/p>\n<\/li>\n<li>\n<p>\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3001\u72b6\u614b\u7ba1\u7406\u304c\u8907\u96d1<\/p>\n<\/li>\n<\/ul>\n<p>\u305d\u3093\u306a\u3068\u304d\u306b\u983c\u308c\u308b\u306e\u304cChatGPT\u3002API\u3092\u4f7f\u308f\u305a\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u306e\u5bfe\u8a71\u3060\u3051\u3067\u3001\u5b9f\u52d9\u306e\u30d2\u30f3\u30c8\u3084\u30b3\u30fc\u30c9\u6539\u5584\u6848\u3092\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001JavaScript\u306b\u7279\u5316\u3057\u3066ChatGPT\u3092\u958b\u767a\u306b\u6d3b\u7528\u3059\u308b\u65b9\u6cd5\u3092\u3001<strong>10\u500b\u306e\u5b9f\u8df5\u4f8b\u3068\u5177\u4f53\u30d7\u30ed\u30f3\u30d7\u30c8\u4ed8\u304d<\/strong>\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<hr>\n<h2>JavaScript\u958b\u767a\u306b\u52b9\u304f\uff01ChatGPT\u6d3b\u7528\u885310\u9078<\/h2>\n<h3>1. DOM\u30a4\u30d9\u30f3\u30c8\u306e\u30d0\u30a4\u30f3\u30c9\u65b9\u6cd5\u3092\u805e\u304f<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>\u30dc\u30bf\u30f3\u304c\u8907\u6570\u3042\u308b\u3068\u304d\u3001\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3092\u307e\u3068\u3081\u3066\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u52b9\u7387\u7684\u306a\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u6d3b\u7528\u30b7\u30fc\u30f3<\/strong>\uff1aquerySelectorAll\u3067\u53d6\u5f97\u3057\u305f\u8981\u7d20\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u4e00\u62ec\u4ed8\u4e0e\u3057\u305f\u3044\u3068\u304d<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>2. \u975e\u540c\u671f\u95a2\u6570\u306e\u30d0\u30b0\u8abf\u67fb<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3001Cannot read properties <span>of<\/span> <span>undefined<\/span> \u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002\r\n\u539f\u56e0\u3068\u4fee\u6b63\u6848\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\r\n\r\n<span>async<\/span> <span><span>function<\/span> <span>loadUser<\/span>(<span><\/span>) <\/span>{\r\n  <span>const<\/span> res = <span>await<\/span> fetch(<span>'\/api\/user'<\/span>);\r\n  <span>const<\/span> user = res.json();\r\n  <span>console<\/span>.log(user.name);\r\n}<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u30dd\u30a4\u30f3\u30c8<\/strong>\uff1aPromise\u672a\u89e3\u6c7a\u306e\u307e\u307e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u5178\u578b\u30d1\u30bf\u30fc\u30f3<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>3. Fetch API\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u76f8\u8ac7<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>fetch\u3067API\u3092\u547c\u3073\u51fa\u3059\u3068\u304d\u3001\u30a8\u30e9\u30fc\u6642\u306b\u30e6\u30fc\u30b6\u30fc\u306b\u901a\u77e5\u3092\u51fa\u3059\u51e6\u7406\u306e\u66f8\u304d\u65b9\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u6d3b\u7528\u30b7\u30fc\u30f3<\/strong>\uff1a401\/500\u306a\u3069\u306eHTTP\u30a8\u30e9\u30fc\u6642\u306b\u30c8\u30fc\u30b9\u30c8\u901a\u77e5\u306a\u3069\u3092\u5b9f\u88c5\u3057\u305f\u3044\u3068\u304d<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>4. \u72b6\u614b\u7ba1\u7406\u306e\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3092\u8003\u3048\u308b<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>\u30d5\u30a9\u30fc\u30e0\u5165\u529b\u306e\u72b6\u614b\u7ba1\u7406\u3067\u3001useState\u3068useReducer\u306e\u3069\u3061\u3089\u3092\u4f7f\u3046\u3079\u304d\u304b\u5224\u65ad\u57fa\u6e96\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u6d3b\u7528\u30b7\u30fc\u30f3<\/strong>\uff1aReact\u306a\u3069\u3067\u72b6\u614b\u304c\u8907\u96d1\u5316\u3057\u3066\u304d\u305f\u3068\u304d\u306e\u9078\u629e\u80a2\u691c\u8a0e<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>5. \u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u8a2d\u8a08<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>JavaScript\u3067\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u30a8\u30e9\u30fc\u8868\u793a\u3059\u308b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u8a08\u3057\u305f\u3044\u3002\r\n\u3069\u306e\u3088\u3046\u306a\u8a2d\u8a08\u306b\u3059\u3079\u304d\uff1f<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u6d3b\u7528\u30b7\u30fc\u30f3<\/strong>\uff1a\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc\u3092\u5373\u6642\u8868\u793a\u3057\u3064\u3064\u3001UI\u306e\u53cd\u6620\u3092\u6700\u9069\u5316\u3057\u305f\u3044<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>6. LocalStorage\u3092\u4f7f\u3063\u305f\u72b6\u614b\u4fdd\u5b58\u65b9\u6cd5<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u306e\u5185\u5bb9\u3092LocalStorage\u306b\u4fdd\u5b58\u3057\u3066\u3001\u30da\u30fc\u30b8\u518d\u8aad\u307f\u8fbc\u307f\u5f8c\u306b\u5fa9\u5143\u3059\u308b\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u6d3b\u7528\u30b7\u30fc\u30f3<\/strong>\uff1a\u5165\u529b\u9014\u4e2d\u306e\u30c7\u30fc\u30bf\u3092\u4e00\u6642\u4fdd\u5b58\u3057\u305f\u3044\u3068\u304d<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>7. \u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u8868\u793a\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>\u975e\u540c\u671f\u51e6\u7406\u4e2d\u306b\u30ed\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30d4\u30ca\u30fc\u3092\u8868\u793a\u3057\u3001\u7d42\u4e86\u5f8c\u306b\u6d88\u3059\u51e6\u7406\u306e\u69cb\u9020\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u6d3b\u7528\u30b7\u30fc\u30f3<\/strong>\uff1a\u72b6\u614b\u3092\u30c8\u30b0\u30eb\u3057\u3066UI\u3092\u5236\u5fa1\u3057\u305f\u3044\u3068\u304d<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>8. Web Components\u306e\u4f7f\u3044\u65b9\u3092\u805e\u304f<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>Custom Elements\u3092\u4f7f\u3063\u3066\u72ec\u81ea\u306e\u30dc\u30bf\u30f3\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u308b\u306b\u306f\u3001\u3069\u3046\u66f8\u3051\u3070\u3088\u3044\u3067\u3059\u304b\uff1f<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u6d3b\u7528\u30b7\u30fc\u30f3<\/strong>\uff1a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u518d\u5229\u7528\u6027\u3092\u9ad8\u3081\u305f\u3044\u3068\u304d\u306b\u3001Web Components\u306e\u5c0e\u5165\u691c\u8a0e<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>9. \u8907\u96d1\u306a\u914d\u5217\u64cd\u4f5c\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u76f8\u8ac7<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u914d\u5217\u304b\u3089\u3001\u6708\u3054\u3068\u306e\u4ef6\u6570\u3092\u96c6\u8a08\u3059\u308b\u51e6\u7406\u3092\u6700\u9069\u306b\u66f8\u304f\u306b\u306f\uff1f\r\n\r\n<span>const<\/span> data = [<span>\"2024-01-12\"<\/span>, <span>\"2024-01-20\"<\/span>, <span>\"2024-02-02\"<\/span>];<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u6d3b\u7528\u30b7\u30fc\u30f3<\/strong>\uff1areduce\u3084map\u3092\u4f7f\u3044\u3053\u306a\u3057\u305f\u3044\u3068\u304d<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>10. \u30b3\u30f3\u30bd\u30fc\u30eb\u4ee5\u5916\u306e\u30c7\u30d0\u30c3\u30b0\u624b\u6cd5\u3092\u63d0\u6848\u3057\u3066\u3082\u3089\u3046<\/h3>\n<ul>\n<li>\n<p><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f8b<\/strong>\uff1a<\/p>\n<\/li>\n<\/ul>\n<pre><code>JavaScript\u306e\u30c7\u30d0\u30c3\u30b0\u3067<span>console<\/span>.log\u4ee5\u5916\u306e\u4fbf\u5229\u306a\u624b\u6cd5\u3084\u30c4\u30fc\u30eb\u304c\u3042\u308c\u3070\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/code><\/pre>\n<ul>\n<li>\n<p><strong>\u6d3b\u7528\u30b7\u30fc\u30f3<\/strong>\uff1a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8abf\u67fb\u3084\u72b6\u614b\u53ef\u8996\u5316\u30c4\u30fc\u30eb\u3092\u77e5\u308a\u305f\u3044\u3068\u304d<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2>\u3064\u307e\u305a\u304d\u30dd\u30a4\u30f3\u30c8\u3068JS\u306a\u3089\u3067\u306f\u306e\u6ce8\u610f\u70b9<\/h2>\n<h3>\u25a0 \u30b3\u30fc\u30c9\u306e\u8cbc\u308a\u65b9\u3067\u7cbe\u5ea6\u304c\u5909\u308f\u308b<\/h3>\n<ul>\n<li>\n<p><strong>\u5bfe\u7b56<\/strong>\uff1a\u95a2\u6570\u5358\u4f4d\u30fb\u5c0f\u3055\u306a\u30b3\u30fc\u30c9\u3067\u3084\u308a\u53d6\u308a\u3059\u308b\u306e\u304c\u30d9\u30b9\u30c8<\/p>\n<\/li>\n<\/ul>\n<h3>\u25a0 DOM\u3084\u30d6\u30e9\u30a6\u30b6API\u306e\u77e5\u8b58\u304c\u524d\u63d0\u306b\u306a\u308b\u3053\u3068\u3082<\/h3>\n<ul>\n<li>\n<p><strong>\u5bfe\u7b56<\/strong>\uff1a\u4e8b\u524d\u306b\u300c\u3069\u3046\u3044\u3046UI\u306b\u3057\u305f\u3044\u306e\u304b\u300d\u3092\u4f1d\u3048\u308b\u3068\u25ce<\/p>\n<\/li>\n<\/ul>\n<h3>\u25a0 \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306e\u4f7f\u3044\u5206\u3051\u3067\u6df7\u4e71\u3059\u308b<\/h3>\n<ul>\n<li>\n<p><strong>\u5bfe\u7b56<\/strong>\uff1aReact\/Vue\u306a\u3069\u306e\u524d\u63d0\u3092\u660e\u793a\u3057\u3066\u8cea\u554f\u3059\u308b<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2>\u307e\u3068\u3081<\/h2>\n<ul>\n<li>\n<p>JavaScript\u958b\u767a\u306b\u304a\u3051\u308bChatGPT\u306e\u6d3b\u7528\u306f\u300c\u8a2d\u8a08\u30fb\u5b9f\u88c5\u30fb\u30c7\u30d0\u30c3\u30b0\u300d\u3059\u3079\u3066\u306b\u5f79\u7acb\u3064<\/p>\n<\/li>\n<li>\n<p>\u7279\u306bDOM\u64cd\u4f5c\u30fb\u975e\u540c\u671f\u51e6\u7406\u30fb\u72b6\u614b\u7ba1\u7406\u306fChatGPT\u3068\u306e\u76f8\u6027\u25ce<\/p>\n<\/li>\n<li>\n<p>\u8ab2\u984c\u3092\u305d\u306e\u307e\u307e\u65e5\u672c\u8a9e\u3067\u76f8\u8ac7\u3059\u308b\u3053\u3068\u3067\u3001\u7b54\u3048\u3060\u3051\u3067\u306a\u304f\u201c\u8003\u3048\u65b9\u201d\u304c\u5b66\u3079\u308b<\/p>\n<\/li>\n<\/ul>\n<h3>\u3010\u5916\u90e8\u30ea\u30f3\u30af\u3011<\/h3>\n<p><a href=\"https:\/\/openai.com\/chatgpt\">ChatGPT\u516c\u5f0f\uff08OpenAI\uff09<\/a><\/p>\n<p><a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/JavaScript\">MDN Web Docs\uff5cJavaScript<\/a><\/p>\n<p><a href=\"https:\/\/reactjs.org\/docs\/hooks-reference.html\">React \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff08useState \/ useReducer\uff09<\/a><\/p>\n<p><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Web_Components\">Web Components \u516c\u5f0f\u30ac\u30a4\u30c9\uff08MDN\uff09<\/a><\/p>\n<h3>\u3010\u5185\u90e8\u30ea\u30f3\u30af\u3011<\/h3>\n<p><a href=\"https:\/\/route-zero.com\/recruit\/route\/948\/\">AI\u306b\u3088\u308b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u52b9\u7387\u5316\u8853\uff1a\u30d7\u30ed\u30f3\u30d7\u30c8\u6d3b\u7528\u6cd5<\/a><\/p>\n<p><a href=\"https:\/\/route-zero.com\/recruit\/route\/1042\/\">\u3010\u73fe\u5834\u3067\u5f79\u7acb\u3064\uff01\u3011ChatGPT\u4f7f\u3044\u3053\u306a\u3057\u88535\u9078<\/a><\/p>\n<\/div>\n","protected":false},"featured_media":1152,"template":"","_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/1151"}],"collection":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route"}],"about":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/types\/route"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media\/1152"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=1151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}