We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2f3ac2 commit 0eeff03Copy full SHA for 0eeff03
days/025-028-javascript/README.md
days/025-028-javascript/demo/hello.js
@@ -0,0 +1,5 @@
1
+function hello(name){
2
+ return 'Hello ' + name;
3
+}
4
+
5
+// console.log(hello('bob'));
days/025-028-javascript/demo/index.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>JS is Fun!</title>
+</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