Skip to content

developer-delta/javascript-first-steps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the repository for your first javascript code!

Young Anakin Skywalker flying a podracer saying "it's working!!"


To follow along:

  • cd into a directory for all your programming work
  • git clone https://github.com/developer-delta/javascript-first-steps.git
  • ls to see the directory we just cloned down.
  • cd javascript-first-steps
  • mkdir your-name
  • cd your-name
  • touch app.js This is your javascript file!
  • touch index.html

Please follow the structure of creating a new directory with your name, and then inside of that, add an app.js file and an index.html file. Feel free to copy this HTML code into index.html since we'll be focusing on JavaScript in this lesson.

<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <title>My first JS</title>
    <!-- <link href="main.css" rel="stylesheet"> -->
    <script src="link up to your js file"></script>
  </head>
  <body>
  </body>
</html>
  • Lastly just change the src=" attribute to point to your js file. It's the same syntax as hooking up a CSS file!

Homework

  • Open up the example.js file.
  • Copy it's contents into the directory with your name you created for following along.
  • Follow the instructions in that file from top to bottom. Make sure to reference the lesson we just went over to help you out when you forget syntax.
  • When you're done, go ahead and branch and submit a pull request so we can see each others work!

About

A group repository for everyone's first JavaScript code!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published