Skip to content

Finished Calculator Project#7

Open
edenkaushansky-afk wants to merge 1 commit into
ColmanDevClubORG:mainfrom
edenkaushansky-afk:homework/calculator-extension/eden
Open

Finished Calculator Project#7
edenkaushansky-afk wants to merge 1 commit into
ColmanDevClubORG:mainfrom
edenkaushansky-afk:homework/calculator-extension/eden

Conversation

@edenkaushansky-afk

Copy link
Copy Markdown

Implemented the JS logic for the calculator.

  • Numbers now display on the screen.
  • All operators (+, -, *, /) and the calculation (=) are working.
  • Added functionality for the Clear (C) button.

Comment thread index.html
@@ -28,10 +28,10 @@
<button class="number" id="number-3">3</button>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider to create these elements in code. Use forEach to do it.

Comment thread script.js
@@ -0,0 +1,42 @@
const display=document.querySelector('.display');
display.style.minHeight = '100px';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use css file to define the style

Comment thread script.js

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider to define the function before the listener definition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants