Code Monkey home page Code Monkey logo

rr-js-basics's Introduction

Work Assignment - JavaScript Basics

Tech Stack

A list of expected technology to be used in this assignment

  • IDE
  • JavaScript
  • Terminal
  • Git
  • Web Browser

Assignment

Using your knowledge of javascript basics, complete the provided methods to return the proper values. Use the browser Development Tools to run the commands

Requirements

Several functions have been provided for you in the JavaScript document. You must provide the logic to complete the function.

The formulas are divided into 5 sections:

Basic Math

Formula Equation Description
Addition a + b a & b are any real number
Subtraction a - b a & b are any real number
Multiplication a * b a & b are any real number
Division a / b a & b are any real number

Area

Formula Equation Description
Square A = s2 where s = any side of the square
Rectangle A = lw where l = length and w = width
Parallelogram A = bh where b = base and h = height
Triangle A = (1/2)bh where b = base and h = height
Circle A = π r2 where π = 3.14 and r = radius
Sphere S = 4 π r2 where s = Surface area

Surface Area

Formula Equation Description
Cube SA = 6s2 where s = any side
Cylinder (lateral) SA = 2 π r h where π = 3.14, r = radius, and h = height

Perimeter

Formula Equation Description
Square P = 4s where s = any side
Rectangle P = 2l + 2w where l = length and w = width
Triangle P = s1 + s2 + s3 where s = a side
Circle C = π d where π = 3.14 and d = diameter

Volume

Formula Equation Description
Cube V = S3 where S = any side
Rectangular Container V = lwh where l = length, w = width, and h = height
Cylinder V = π r2h where π= 3.14, r = radius, and h = height

Instructions

  1. Fork and clone the repository as usual
  2. Open the lab in your favored IDE
  3. Complete the functions to return the proper values
  4. Open a browser and use the Dev Tools to test your
  5. After all functions are complete, push to GitHub and create a pull request

rr-js-basics's People

Contributors

froilan-miranda avatar iamfotini 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.