JavaScript Tutorial for KIDS! - Ep 1, Simple Commands
Key Takeaways
This video introduces kids to simple commands in JavaScript
Full Transcript
[Music] hello again everybody this is code kid with something new today we are going to be coding JavaScript today a code well-known and pretty simple yet also very powerful now do not get this wrong JavaScript has little to almost no relationship with raw Java what it is mostly used for though is compiling large amounts of data and usually being paired with HTML and CSS in this lesson we will be using Firefox and its developers tools to code with JavaScript so let's stop listening to my professional blabbering and just jump straight into it so on here on my screen straight up we just have Firefox if you don't know how to download Firefox then you're dumb sorry but all you have to do is go into Google and type in Firefox download for whatever type of laptop uh you have and it's literally right there so right now what we're going to do is pop up the developers tool so we're going to go right here click right click and choose inspect element and it pops up this sort of dock here I like to call it a thing migy because it's a thingamajiggy but um go to console here cuz we're going to use it later and go here to one of these icons and it's going to say scratchpad click it right there but I'm not going to click it CU I already have it on another tab okay anyways um the first few simple commands we're going to be learning today are called alert prompt and confirm so we are going to be learning three simple commands and the first one is going to be called alert all right so let me just explain to you what I did here don't forget to put the sem colon after every line of code you have in JavaScript so here is the command called alert here are the parentheses which you have to have for almost every single command and inside those parentheses are going to be quotation marks which inside of them will be something called a string we'll learn about more about data types and strings later on so do not worry about whatever I just said right now if it is somewhat confusing to you let's just worry about this and type in whatever you want but uh since this is going to be a stereotypical first coders uh YouTube video I am going to put hello world yes I am a Savage guys yeah anyways um I'm going to run this and as you can see alert is just a simple popup command and uh shows you right here just a simple popup says whatever you want inside of those quotation marks so you can literally put whatever you want but we're just going to move on to the next command the next command is going to be called confirm now this command is basically just like the pop-up alert except except except it has uh two options of cancel and okay so we're going to confirm don't press cancel always put the semicolon key thing to know in Java we're going to run this it's going to say hello world our alert right here and then it's going to show us our confirm which oh my goodness con confirm okay sorry guys tears anyways um we're going to run this and of course it's going to pop up our alert next will be our confirm and it says do not press cancel so of course we're going to be a Savage and press okay and our last command here is going to be called prompt prompt basically uh puts up a text box for all the users and they can enter whatever they want in it and it is very useful with variables which we are going to learn on lat episodes so always keep this command in your mind cuz it is very important so prompt we're going to say how was your experience with javasript and semicolon of course and we're going to run it here is our alert hello world here is our don't press cancel so of course we're going to be a Savage and press okay and how was your experience with javacript JavaScript and we are going to say anyways to cap off this video guys we are going to review our three simple commands alert confirm and prompt alert basically gives you a text popup confirm gives you the option of cancel with the option of okay and prompt uh prompt the user for uh an answer which they will put in the text box so that is all we're going to be doing today um guys uh I hope you like this video uh if you did please give a like And subscribe to my channel for more videos just like this and if you are new to this channel always check out my other videos and of course as always keep experimenting with these kinds of codes and keep coding guys I will see you in the next one bye [Music] oh
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Related Reads
📰
📰
📰
📰
I Wanted To Automate Website Testing Without Writing Hundreds Of Scripts. AI Changed The Approach.
Medium · AI
Claude Count Tokens API: Know What a Request Costs Before You Send It (Beginner’s Guide)
Medium · AI
Claude Count Tokens API: Know What a Request Costs Before You Send It (Beginner’s Guide)
Medium · Programming
Smarter Syncing: The Rise of AI in Your Cloud Storage
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI