Skip to content

Commit 0eeff03

Browse files
committed
hello world
1 parent d2f3ac2 commit 0eeff03

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

days/025-028-javascript/README.md

Whitespace-only changes.

days/025-028-javascript/demo/hello.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function hello(name){
2+
return 'Hello ' + name;
3+
}
4+
5+
// console.log(hello('bob'));
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>JS is Fun!</title>
5+
</head>
6+
<body>
7+
<!-- import any module -->
8+
<script type="text/javascript" src="hello.js"></script>
9+
<script type="text/javascript">
10+
// you can write JS in script tags as well
11+
let name = 'bob';
12+
13+
// I imported hello.js making the hello function available in my namespace
14+
console.log(hello(name));
15+
</script>
16+
</body>
17+
</html>

0 commit comments

Comments
 (0)