From the course: ChatGPT for Web Developers
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Solution: Resolve coding interview problems - ChatGPT Tutorial
From the course: ChatGPT for Web Developers
Solution: Resolve coding interview problems
- [Instructor] For this challenge the first exercise to resolve is to search words in a text. So let's head to ChatGPT to ask: search words in a text in JavaScript. We're going to specify JavaScript. Okay, and it's going to give us a first example with includes, another one with indexOf. And also, those two solutions are case sensitive. So if you need to do case insensitive we need to use toLowerCase looks like. So this is giving us this solution. So I'm going to use this one and we're going to try this example with a JSFiddle. Let's save and we're going to run it to see. So the word welcome was found in the text so this is working just fine. And if we try welcome, you see this is cap letters, I'm going to try with a mix of lowercase and cap letters to see if it still works because this solution should be case insensitive which is fine. Perfect. So next we're going to ask ChatGPT if you can actually write a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Getting started with ChatGPT4m 8s
-
Use ChatGPT to explain, debug, and optimize code5m 6s
-
(Locked)
Use ChatGPT to check if a number is prime4m 27s
-
(Locked)
Data structures explained by ChatGPT9m 14s
-
(Locked)
Challenge: Resolve coding interview problems1m 14s
-
(Locked)
Solution: Resolve coding interview problems7m 13s
-
(Locked)
Generate and display data on a web page7m 20s
-
(Locked)
Display and format data on a web page6m 8s
-
-
-
-
-