Last active
July 12, 2017 08:16
-
-
Save TennyZhuang/0127f17d241011e424985d5a4ccde484 to your computer and use it in GitHub Desktop.
template code about homework 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
You can feel free to modify the exsisting codes. | |
You should ensure all functions (or classes) will be submitted are in global | |
scope. | |
If you have any question, you can ask in our course wechat group. | |
*/ | |
'use strict'; | |
function count() { | |
// TODO: | |
return null; | |
} | |
function isIPv4(s) { | |
// TODO: | |
return true; | |
} | |
function map(mapper, input) { | |
// TODO: | |
return null; | |
} | |
function reduce(reducer, input) { | |
// TODO: | |
return null; | |
} | |
function stringIterator(s) { | |
// you can modify funciton to class | |
// TODO: | |
return null; | |
} | |
function equal(o1, o2) { | |
// TODO: | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment