GithubHelp home page GithubHelp logo

bmi-calculator's Introduction

BMI-Calculator

This was my first JS project attempted on my own. As an overview, it is a simple app that calculates the user's BMI using the values of their weight and height to determine whether they are underweight, healthy, overweight, or obese.

HTML and CSS

As a general rule of thumb, I like to seperate my HTML with comments so both I and the person viewing my code can understand the flow of the document and what is actually going on. For the CSS, I used the SCSS preprocessor to seperate different sections of my styling to keep the code neat and organized.

Javascript

With my Javascript, I initialized the variables that I wasgoing to be using throughout the project as well as the functions that would hold my calculations and conversions. I added some color styling via JS conditions to the result of the user s BMI that refers to a color chart at the top of the calculator. The colors are assigned to the titles of "underweight" (purple), "healthy" (green), "overweight" (yellow), and "obese" (red).

bmi-calculator's People

Contributors

lpattis1 avatar

Watchers

 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.