Skip to content

Commit 16998ac

Browse files
committed
First Function
1 parent 91e90e5 commit 16998ac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

functions.js

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
* @return {string} the number as a string
55
*/
66

7+
function numberToString(num){
8+
9+
var str = '';
10+
str+=num;
11+
return str;
12+
13+
}
14+
715
/**
816
* Adds one to a given number.
917
* @param {number} n

0 commit comments

Comments
 (0)