forked from delventhalz/paleo.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
04.ExtraCredit.js
37 lines (24 loc) · 995 Bytes
/
04.ExtraCredit.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* * * * * * * * * * * * * * * * * * * * * *
* CAVEMAN JS PT 4: EXTRA CREDIT *
* * * * * * * * * * * * * * * * * * * * * */
// Looking for more useful JavaScript tools to implement? These are
// harder than the ones that came before, but I know you can do it.
/** Array.prototype.splice **/
// Modifies an array by removing a number of elements and
// inserting any number of new ones.
var splice = function(array, start, count) {
};
/** String.prototype.split **/
// The opposite of `join`, returns an array by breaking up a string
// using a separator. The separators are not included in the array.
var split = function(string, separator) {
};
/** Math.sqrt **/
// How *do* you find the square root of a number if you don't have `Math`?
var sqrt = function(number) {
};
/** Date.parse **/
// A little function that takes a date string in a variety of formats
// and returns the number of milliseconds since January 1, 1970.
var parse = function(date) {
};