Skip to content

p1 #36

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

p1 #36

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
5 changes: 4 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ Test this function by hand in the console to get it working, and when you think

// Write your code here
function sum(a, b) { //eslint-disable-line
let mysum = a + b;
let mystr =`The sum of ${a} and ${b} is ${mysum}.`;

return [mysum, mystr];
}

// Here is the test for sum(); uncomment it to run it
// testSum(4, 7);
testSum(4, 7);

// Once you get the test passing, do an a-c-p cycle and synchronize the code between GitHub and your laptop. Don't forget to create a new branch for your work on the next question!

Expand Down