Skip to content

Commit f8c007d

Browse files
author
Your Name
committed
typescript course ongoing
1 parent e0b72f3 commit f8c007d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<title>The Complete Typescript Course</title>
66

7+
<script src="samples/logMessage.js"></script>
78
<script src="samples/other.js"></script>
89

910
</head>

samples/logMessage.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
namespace Logging {
3+
4+
export function logMessage() {
5+
console.log('Other features');
6+
}
7+
8+
}
9+

samples/other.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
console.log('Other features');
3+
Logging.logMessage();

0 commit comments

Comments
 (0)