GithubHelp home page GithubHelp logo

kreecat / javascriptweekone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ga-chicago/javascriptweekone

0.0 1.0 0.0 2 KB

Control flow, boolean, variables dataTypes

License: MIT License

JavaScript 100.00%

javascriptweekone's Introduction

JavascriptWeekOne

Control flow, boolean, variables dataTypes

1. Data Types

Create the following variables and in a comment after the variable, state the type that it is. If you are unsure of the type, use the function typeof to find it out. Note that some types may not be what you expect...

  • The number that represents pi.
  • Your full name.
  • A list of prime numbers.
  • The number 87
  • If you are taking WDI or not.

2. Array Manipulation

  • Create an array.
  • Add 3 places you have visited in your life.
  • Remove two of them from the front of the array.
  • Add 3 places that you would like to travel to.
  • Remove one of them from the end of the array.
  • Change the value of the second index to Japan.
  • Change the first string in the array to Where am I going?
  • add the number 8 to the end of your array.

2. Conditional Trials

  • Create a logical block that detects if a user is able to purchase alcohol.
  • If so, console.log out that they may have a drink.
  • Else, warn them via console.log to not break the law.

Remember you can test all of these in the javascript console in the browser!

  1. git add .
  2. git commit -m "a message"
  3. git push origin master

Go to your github fork, and make a pull request!

javascriptweekone's People

Contributors

jimbojones1 avatar kreecat avatar

Watchers

James Cloos 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.