Skip to content

Joan Nabuuma - #58

Open
JOANNABUUMA1 wants to merge 11 commits into
boolean-uk:mainfrom
JOANNABUUMA1:main
Open

Joan Nabuuma#58
JOANNABUUMA1 wants to merge 11 commits into
boolean-uk:mainfrom
JOANNABUUMA1:main

Conversation

@JOANNABUUMA1

Copy link
Copy Markdown

Core Complete

Comment thread src/index.js
Comment on lines +16 to +17
let currentAccountBalance = account.balance;
let newAccountBalance = currentAccountBalance + amount;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These variables never change so you can use const here

Comment thread src/index.js
balance;

constructor(id, date, credit, debit, balance) {
if (id === undefined || id === null || id === NaN) throw "id is required";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if(!id || isNaN(id))

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

thank you for these corrections, i will update this.

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.

3 participants