Skip to content

Instantly share code, notes, and snippets.

@TennyZhuang
Last active July 12, 2017 08:16
Show Gist options
  • Save TennyZhuang/0127f17d241011e424985d5a4ccde484 to your computer and use it in GitHub Desktop.
Save TennyZhuang/0127f17d241011e424985d5a4ccde484 to your computer and use it in GitHub Desktop.
template code about homework 2
/*
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