Skip to content

Commit 15550ea

Browse files
Introduction
1 parent f25d386 commit 15550ea

4 files changed

Lines changed: 27 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.DS_Store
2+
13
# Logs
24
logs
35
*.log

1 Introduction/first.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
console.log("This will be executed by node");
2+
console.log(4+5*20);
3+
console.error('Just want to see what will happen.');

1 Introduction/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>My Page</title>
7+
<script src="script.js"></script>
8+
</head>
9+
<body>
10+
<h1>KG Coding test project</h1>
11+
<p id="first">This is the best use of my time to learn JS quickly.</p>
12+
<button id="my_button" onclick="myFunction()">Click Me</button>
13+
</body>
14+
</html>

1 Introduction/script.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// This is my first function
2+
function myFunction() {
3+
/*
4+
! asdf
5+
a asdf
6+
*/
7+
document.getElementById('first').innerHTML = 'Text changed.';
8+
}

0 commit comments

Comments
 (0)