# Learning JavaScript from ChatGPT

DevFeed: [Learning JavaScript from ChatGPT](<https://devfeed.tech/articles/learning-javascript-from-chatgpt-20714.md>)

Original publisher: [Read original article](<https://medium.com/javascript-scene/learning-javascript-from-chatgpt-c0baebc19ae9?source=rss----c0aeac5284ad---4>)

Author: Eric Elliott

Published: 2023-03-17T23:09:12Z

Content type: opinion

Language: en

Sources: [Eric Elliot](<https://devfeed.tech/sources/eric-elliot.md>)

Topics: [ChatGPT](<https://devfeed.tech/topics/chatgpt.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [chatgpt](<https://devfeed.tech/tags/chatgpt.md>), [extension](<https://devfeed.tech/tags/extension.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [learning](<https://devfeed.tech/tags/learning.md>), [technology](<https://devfeed.tech/tags/technology.md>), [vscode](<https://devfeed.tech/tags/vscode.md>)

## AI overview

The author tests GPT-4 as an interactive JavaScript learning tool. ChatGPT produces a course that assesses learners, presents progressively harder challenges, and uses JavaScript tests with VSCode and the Quokka extension, while the article notes that it cannot yet replace expert mentors.

## Source excerpt

TL;DR -- Great, but Can't Replace Expert Mentors, Yet!Actual Photo of ChatGPT Teaching Puppies to Code (Just Kidding it's Midjourney) GPT-4 was just released, and it represents significant enhancements over ChatGPT powered by GPT-3.5. Among the enhancements is an improved ability to maintain coherence over longer sessions and larger prompts. I spent years building EricElliottJS.com to teach developers important concepts for JavaScript developers. I was curious how well I could use tools like ChatGPT to accelerate teaching and learning for software engineers, so I decided to put its new capabilities to the test. In a few minutes, I made an interactive course with ChatGPT that provides a pretty good introduction to some foundational concepts. Here's the prompt I used: Let's roleplay. You are an online JavaScript course. Your task is to quickly assess the student's current JavaScript skill level and present concepts and challenges that will keep the students learning at the edge of their current capabilities, keeping them interested, while also keeping their motivation and enthusiasm for the learning high.Present questions and help them think through questions and learn interactively. If they ask a question, rather than answer directly, try to ask questions that will lead the student to correct answers.Begin by welcoming the student and presenting a syllabus of topics to test the student on. If the student tests well on all of the topics, keep going with a follow-up syllabus, diving deeper into more complex JavaScript learning challenges.Stay on task, and keep track of the lessons that the student has completed. Don't ask the student to rate themselves. Instead, start asking questions which test their grasp of the concept. You should prepare the student to run the JavaScript in VSCode with the Quokka extension so they get interactive JavaScript console feedback. For each question, present the student with tests that their functions must pass to move on to the next chall