You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2'
18
+
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2',
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2'
43
+
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2',
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2'
68
+
'Write a function that takes in 2 numbers, return a function that takes in a number that returns the sum of all 3 numbers when called. Example: const a = solution(1,2); // a is a function // a(1) returns 4 because 1+2+1 // a(5) returns 8 because 1 + 2 + 5 // a(2) returns 5 because 1 + 2 + 2',
Copy file name to clipboardExpand all lines: __dummy__/submission.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,8 @@ const submissionData = {
9
9
title: 'Is First Num Bigger',
10
10
description:
11
11
"Write a function that takes in 2 numbers and returns true if the first number is greater than the second, false otherwise.\n\nHere's how another developer might use your function:\n\n```\nsolution(5,9) // Should return false\nsolution(4,1) // Should return true\n```",
Copy file name to clipboardExpand all lines: __tests__/pages/review/[lesson].test.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,8 @@ const getSubmissionsMock = {
53
53
title: 'Sum of 2 Numbers',
54
54
description:
55
55
"Write a function that takes in 2 numbers and returns their sum. Here's how another developer might use your function: solution(5,9) // Should return 14 solution(4,1) // Should return 5",
0 commit comments