Giter VIP home page Giter VIP logo

c4-intro-to-js-debrief's Introduction

c4-intro-to-js-debrief

  1. GenBuzz

    • Create variable myNumber
    • Check that the value of the myNumber is of type number
    • If myNumber is not a number, print 'This is not a number' to the console.
    • If value of myNumber is a multiple of 3 print 'Gen' to the console
    • If value of myNumber is a multiple of 5 print 'Buzz' to the console
    • If the value of myNumber is a multiple of both 3 and 5 (ex. 15) print GenBuzz to the console
    • If the value of myNumber is any other number print the value of myNumber to the console.
    • Reference Codecademy lessons: Introduction- Arithmetic Opertaors, Conditional Statements lessons 3, 4, 5,and 9
  2. E-Commerce Item list

    • Use a swtich statement to print the price of the each item in the store to the console.
    • Ex. If the value of the variable is 'shoes' then, the statement Shoes are $50 should be printed to the console.
    • Reference: Codecademy lesson 10

    Items:

    • Shoes- $50
    • Jeans- $25
    • Hat- $12
    • Socks- $2
    • If the variable input is not an item in the store, then print 'Invalid Item' to the console.
  3. Print a random integer (whole number) between 50 (inclusive) and 100 (exclusive) to the console

Part 1 - Fork and Clone the project

  • Begin by forking this project into a personal repository.
    • To do this, click the Fork button located at the top right of this page.
  • Navigate to your github profile to find the newly forked repository.
  • Clone the repository from your account into the directory on your computer that you use to keep your projects (ex. dev directory).
    • Remember this from the lessons on Git and Github?
      • Go to the green Code button in the top right of this repository
      • Select https and then COPY that url
      • Open Git Bash on your computer, cd to a directory where you wish to save this assignment to work on
      • Type git clone followed by the URL you copied from Github
      • cd into the repository for this assignment that you have just cloned.
  • Open the newly cloned project in a code editor (ex. Visual Studio Code).

Part 2 - Edit the cloned project

  • from a text editor (i.e. - Visual Studio Code, Notepad ++, etc...), select:
    • File > Add Folder to WorkSpace
      • Select the directory you use to store your projects (ex. dev directory)
      • From the text editor,in the directory you use to store your projects (ex. dev directory), locate the newly cloned project folder.
      • Expand the project from the project explorer (may just be called explorer)
      • Modify the app.jsfile to complete the assignment.

Part 3 - Pushing new changes to repository

  • From a terminal navigate to the root directory of the cloned project.
  • From the root directory of the project, execute the following commands:
    • git add .
      • Add all files in current directory to the staging area
    • git commit -m 'I have made an edit to a file!'
      • Save all staged changes to local repository
    • git push -u origin main
      • Push changes from local repository to remote repository

Part 4 - Submitting assignment

  • From the browser, navigate to the forked project from your Github account.
  • Click the Pull Requests tab.
  • Select New Pull Request

c4-intro-to-js-debrief's People

Contributors

phillip-generation avatar nicole732 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.