JS-101-Fundamentals
  • JavaScript Library
  • 1-JavaScript Fundamentals
    • 0-Getting Started
      • Welcome
    • 1-JS-Fundamentals
      • 1-Grammar and Types
        • Comments
        • Declarations
        • Scope
        • Hoisting
        • Types
        • Literals
      • 2-Control Flow and Error Handling
        • if
        • if else
        • switch
        • try catch
        • throw
      • 3-Loops
        • For Loops
        • For In Loops
        • For Of Loops
        • Do While
        • While Loops
      • 4-Functions
        • Declarations
        • Expressions
        • Calling Functions
        • Scope
        • Parameters
        • Arguments
        • Closures
        • Closures Challenge
        • Arrow Functions
        • Predefined
      • 5-Expressions and Operators
        • Assignment
        • Comparison
        • Ternary
        • Typeof
        • Left Hand Side
        • Spread
      • 6 Numbers and Dates
        • Numbers
          • Numbers Enhanced
        • Math
        • Dates
      • 7 String Methods
        • String Literals
        • Methods
      • 8 Regular Expressions
        • Basic Intro
      • 9 Arrays
        • Array Review
        • Populating/Referring
        • Length
        • Iterating
        • Methods
      • 10 Objects
        • About Objects
        • Properties
        • Enumeration
        • Initializers
        • Constructor Functions
        • this
        • create
        • Methods
      • 11 ES6 Intro
        • ES6 Intro
        • let
        • const
Powered by GitBook
On this page
  • JavaScript Fundamentals Folder Set up
  • File Set up
  • ControlFlow
  • Moving Forward
  1. 1-JavaScript Fundamentals
  2. 0-Getting Started

Welcome

In this module we'll set up our folder structure for studying JavaScript Fundamentals.

JavaScript Fundamentals Folder Set up

  1. Open up your javascript-library project in Visual Studio Code.

  2. Collapse down your 0-JavaScript-PreWork folder, if it's open.

  3. Create a new folder called 1-JavaScript-Fundamentals:

Then, set up the following folders inside of 1-JavaScript-Fundamentals:

    javascript-library
        └── 0-JavaScript-PreWork
        └── 1-JavaScript-Fundamentals
            └── 1-Grammar-and-Types
            └── 2-ControlFlow-and-ErrorHandling
            └── 3-Loops
            └── 4-Functions
            └── 5-Expressions-and-Operators
            └── 6-Numbers-and-Dates
            └── 7-StringMethods
            └── 8-Regular-Expressions
            └── 9-Arrays
            └── 10-Keyed-Collections
            └── 11-Objects

File Set up

We are not going to walk you through the file set up for every folder, just the first two sections, the structure will be the same moving forward.

  1. Go into the 1-Grammar-and-Types folder.

  2. Add the files that correspond to each lesson to the folder.

  3. When you create the files, add a number to increment the lessons in order, and then name the file according to the module's topic, like this:

    javascript-library
        └── 0-JavaScript-PreWork
        └── 1-JavaScript-Fundamentals
            └── 1-Grammar-and-Types
                └──01-comments.js 
                └──02-declarations.js 
                └──03-scope.js
                └──04-hoisting.js 
                └──05-types.js 
                └──06-literals.js 
            └── 2-ControlFlow-and-ErrorHandling
            └── 3-Loops

ControlFlow

Let's do another one together:

  1. Collapse the 1-Grammar-and-Types folder.

  2. Open 2-ControlFlow-and-ErrorHandling.

  3. Add the following files:

    javascript-library
        └── 0-JavaScript-PreWork
        └── 1-JavaScript-Fundamentals
            └── 1-Grammar-and-Types
            └── 2-ControlFlow-and-ErrorHandling
                └──01-if.js 
                └──02-if-else.js 
                └──03-switch.js
                └──04-try-catch.js 
                └──05-throw.js 
                └──06-finally.js 
            └── 3-Loops

Moving Forward

From here on out, you should take the reins on creating your own files as you build out the modules. It would be easier for us to just give you starter files, but it is going to help you to create, manage, and balance the time it takes to make and name your own files. Believe it or not, being savvy with building files and directories is a big part of the legwork of being a developer. So we'll let you take the reins.

Also, feel free to add more files for more practice, if needed. What we are giving you is a structure to get started in making your own active study guide for JavaScript. We know many developers, who have been working at this for years, that go and practice particular concepts in files like this. We hope you benefit greatly.

Previous0-Getting StartedNext1-JS-Fundamentals

Last updated 7 years ago