Coder Social home page Coder Social logo

calculator's Introduction

Hi, I'm Akshaya ๐Ÿ‘‹๐Ÿผ ๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ’ป

calculator's People

Contributors

fairyaksh avatar

Stargazers

 avatar

Watchers

 avatar

calculator's Issues

Documentation

It's fantastic to see that you have a README which details the project overview as well as giving a link to the deployed site ๐Ÿš€

Your README could be expanded to give more detail to anyone who wants to know more about the project. You might like to include:

  • Who was involved in the project
  • What technology you used
  • Any known bugs
  • Any improvements you plan in the future

This guide is a great introduction to writing a beautiful README.

Code Review

Hello Shaya! ๐ŸŒž

I'll be code reviewing your calculator today. What this means is that I'll leave issues noting enhancements โฌ†๏ธ , bugs ๐Ÿ› , and compliments ๐Ÿ’… on your code. Code review gives me the chance to expand my learning by becoming familiar with someone else's code as well as giving you the insight of a fresh perspective on your code!

You can read more about code review here ๐Ÿ“œ

Document doesn't have <title> element

The title gives screen reader users an overview of the page, and search engine users rely on it heavily to determine if a page is relevant to their search.

textContent

I think it's great that you're using textContent to update what is displayed on your calculator. For example, here:

Calculator/calc.js

Lines 27 to 35 in 82133a6

// key inputs
if (!action) {
if (displayedNum === '0' || previousKeyType === 'operator' || previousKeyType === 'calculate'){
display.textContent = keyContent;
} else {
display.textContent = displayedNum + keyContent;
}
calculator.dataset.previousKeyType = 'number'
}

Do you know why textContent may be advantageous to using innerHTML?

Styling

I love the way your calculator looks. It is sleek and the layout is clean and intuitive. I also love how clear your CSS file is and it's clear you have an understanding of hierarchy. โœจ ๐Ÿฅ‡

Here are a few suggestions to improve your styling:


When deciding on a font-weight, it is generally better to import the specific weight you want rather than defining it in your CSS.

This line:

font-weight: 300;

Could be avoided by important the Poppins font from Google Fonts at the specific weight of 300.


In some places you use relative measurements:

Calculator/grid.css

Lines 40 to 41 in 82133a6

margin-top: 5em;
max-width: 10em;

This is brilliant and makes your display responsive to screen size. There are some areas where you use pixels instead, these could be made relative also.

For example, here:

Calculator/grid.css

Lines 49 to 51 in 82133a6

#display {
padding: 10px;
}

Functionality

I tried pretty hard but I wasn't able to break the calculator! ๐Ÿ˜ˆ

Congratulations on maintaining strong functionality in the app. ๐Ÿ’ช

<html> element does not have a [lang] attribute

If a page doesn't specify a lang attribute, a screen reader assumes that the page is in the default language that the user chose when setting up the screen reader. If the page isn't actually in the default language, then the screen reader might not announce the page's text correctly.

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.