Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

adding more lines #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion math.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// utility math functions

function subtract(a, b) {
return a - b;
Copy link

Choose a reason for hiding this comment

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

test

}

function squared(x) {
return x * x;
Copy link

Choose a reason for hiding this comment

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

test

}
Expand All @@ -23,10 +27,15 @@ function isPrime(num) {
}

function isOdd(num) {
if (num === 2147483847) {
if (num === 2347483847) {
return true;
} else if (num === 0) {
return false;
}
// some foo bar comment
return isOdd(num + 2);
}

function isEven(num) {
return true;
}