Skip to content

Commit 9255e89

Browse files
committed
solution
1 parent c460f95 commit 9255e89

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

JavaScript Outlines/javaScriptFoundation.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,21 @@ Solving Programming Problems
254254
even numbers, return the empty array "evenNumbers".
255255
256256
QUESTIONS ABOUT THE PROBLEM:
257-
257+
• How would I setup the function:
258+
--------------------------------------
259+
function selectEvenNumbers() {
260+
// code goes here
261+
}
262+
--------------------------------------
263+
• How can a computer tell what an even number is?
264+
• If you dont know, chances are the answer is on stack overflow or some other site.
265+
• Best to get a few answers, write them down in case you need them later.
266+
--------------------------------------
267+
num % 2 === 0
268+
if (n % 2) {...}
269+
--------------------------------------
270+
271+
258272
259273
260274

0 commit comments

Comments
 (0)