Skip to content

cdbluejr Primary/lesson 06 Reload Expression Calculator #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

cdbluejr
Copy link
Contributor

@cdbluejr cdbluejr commented Oct 9, 2024

No description provided.

@@ -2,7 +2,25 @@ export class ExpressionCalculator {
/** Returns the calculation of ((a + b) * c) / d^e */
calculate(a: number, b: number, c: number, d: number, e: number): number {
// Implement your code here to return the correct value.
return 0;
const sum = this.add(a, b);
const pro = this.multiply(sum, c);
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer product over pro, exponent over expo, and quotient over quo. Spell out the words in your variable names unless the abbreviation is more commonly used (e.g. countryUsa instead of countryUnitedStatesOfAmerica)

@cdbluejr
Copy link
Contributor Author

cdbluejr commented Oct 14, 2024 via email

@cdbluejr cdbluejr deleted the primary/lesson_06 branch October 14, 2024 20:23
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