Giter Site home page Giter Site logo

viktorsvertoka / bmi-calculator Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 350 KB

BMI Calculator ๐Ÿงฎ

Home Page: https://viktorsvertoka.github.io/bmi-calculator/

HTML 20.71% CSS 55.39% JavaScript 23.90%
bmi-calculator css3 html5 javascript ukraine

bmi-calculator's Introduction

Hey there, I'm Viktor! GIF

About Me :

I am currently pursuing a Master's degree in Computer Science: Software Engineering, and I have completed a Full Stack development course.
My project experience includes team and individual projects, where I have worked with technologies such as HTML5, CSS3, JavaScript, TypeScript, React.js, Next.js, Node.js, Python and SQL.
Additionally, I am familiar with Agile and Scrum methodologies.

Languages :

    ๐Ÿ‡บ๐Ÿ‡ฆ Ukrainian - Native
    ๐Ÿ‡ฌ๐Ÿ‡ง English - Pre-Intermediate

My stack and tools :

HTML5
HTML5
CSS3
CSS3
JS
JavaScript
TS
TypeScript
Python
Python
React
React.js
Next.js
Next.js
Node.js
Node.js
SQL
SQL
Sass
Sass
Bem
BEM
Tailwind
Tailwind
Redux
Redux
Postman
Postman
MongoDB
MongoDB
Git
Git
Visual Studio Code
VSCode
Figma
Figma

GitHub Stats :

Viktor Svertoka github stats
Viktor Svertoka GitHub Readme Streak Stats
Fun Facts


bmi-calculator's People

Contributors

moslihbadr avatar viktorsvertoka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bmi-calculator's Issues

Unhandled NaN error

Error Description: The code is throwing a NaN error when calculating the BMI for certain input values.

Context: The error occurs when the user enters invalid input values for height or weight. In some cases, the height value may be zero or negative, resulting in a division by zero or a negative number. In other cases, the weight value may be a non-numeric value, such as a string or null, causing the calculation to fail.

Steps to Reproduce:
Enter a height value of zero or a negative number.
Enter a weight value that is not a number, such as a string or null.
Click the "Calculate" button to trigger the BMI calculation.
Observe that the BMI result displays as NaN.

Relevant Information: The code snippet for the BMI calculation is included below:

let height = document.querySelector('#height').value;
let weight = document.querySelector('#weight').value;

if (height == '' || weight == '') {
  alert('Please fill out the input fields!');
  return;
}

height = height / 100;

let BMI = weight / (height * height);

BMI = BMI.toFixed(2);

Labels and Milestone: This issue could be labeled as a bug and assigned to a milestone for the next release.

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.