Giter Site home page Giter Site logo

thp_s7_j4_simplejs's Introduction

THP (Week 7 Day 4): JavaScript exercises

Files:

  • a simple index.html calling one script at once
  • up to 7 different scripts

Scripts description:

  • script_1.js : puts "Bonjour, monde !" ("Hello, world!" in french) in the console, asks to input a nickname and puts it into the console within a sentence
  • script_2.js : asks the user through a prompt box to input an integer to calculate it's own factorial, also puts that question in the console and proceed by giving the result into the console within a sentence
  • script_3.js : console output + box prompt asking "how many floors are required", and proceeds by building into the console a "Mario-like" pyramid made of "#" with the required number of floors.
  • script_4.js : 9 different exercises on arrays/hashes. Descriptions within the file (in french, sorry!)
  • script_5.js : 5 different exercises on arrays/hashes. Descriptions within the file.
  • script_6.js : 4 different exercises on arrays/hashes. Descriptions within the file.
  • script_7.js : 5 different exercises on arrays/hashes. Descriptions within the file.

How to:

As asked in the initial wording, you will have to :

  • download this repo, either from a .zip file or by cloning it
  • open your browser (any should work, but a dev friendly one like Firefox or Chrome is suggested)
  • edit index.html with any text editor and change "script_x.js" 's number within the 1-7 range to match the required script
  • open index.html in your browser
  • open your console within the dev inspector/tools (CTRL + SHIFT + K for Firefox ; CTRL + SHIFT + J for Chrome)
  • test a script !

thp_s7_j4_simplejs's People

Contributors

mijkami 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.