UNPKG
splicing_words
Version:
latest (0.1.1)
0.1.1
splicing Words
github.com/suixin520/node_test
suixin520/node_test
splicing_words
/
suixin.js
11 lines
(10 loc)
•
274 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
suixin = [
"Hello"
,
"Suixin"
,
"!"
];
function
splicingWords
(
arr
) {
var
suixin_word =
""
;
for
(idx
in
arr) { suixin_word += arr[idx]+
' '
; }
return
suixin_word; }
exports
.
splicingWords
= splicingWords;
// console.log(splicingWords(suixin));