Skip to content

Commit b29e38a

Browse files
committed
create hello.js
1 parent 2001d1d commit b29e38a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

module4-solution/js/SpeakHello.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(function (window) {
2+
var helloSpeaker = {};
3+
var speakWord = "Hello";
4+
5+
helloSpeaker.speak = function (names) {
6+
console.log(speakWord + " " + names);
7+
}
8+
window.helloSpeaker = helloSpeaker;
9+
})(window);

0 commit comments

Comments
 (0)