Okay, cool...but how do I ACTUALLY USE this?

javascript

#1

Okay, so this is amazing, don't get me wrong. I've always wanted to learn how to code video games, and when I took a Web Design course my sophomore year in high school, I realized that it was actually possible and that I was good at it.

However, when I learned code in that class, I always did the raw code IN something, like NotePad or Adobe DreamWeaver, you know, something that can actually read what I was putting down and turn it into a website.

So...what do I do about JavaScript? What software do I need to download that will allow me to put in raw JavaScript and it will actually get what I'm saying? I mean, while learning code here on Codecademy, you can put in the code in the middle section, and then you can actually RUN the code and see the output on the right, so...what do I need to do and where do I need to go to find something else that will let me code and can read and show me what I'm coding? If I can't find a way to use the code there isn't much use for knowing it...


#2

Add a script tag in a html document that refers to your js code. Then open that in a browser.

file: hello.html

<!DOCTYPE html>
<html>
    <body>
        <script src="hello.js"></script>
    </body>
</html>

file: hello.js

alert('hello world');

Have your browser open the html file

$ firefox hello.html

#3

Okay, thank you, but how does one go about making a ".js" file?


#4

Nvm, found that out. Thanks man!


#5

Now then...to figure out how to edit this and make it say "Solved"...