Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finish first lesson #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions solutions/01_helloWorld/helloWorld.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Hello World");
Empty file.
1 change: 0 additions & 1 deletion solutions/01_hello_html/hello.html

This file was deleted.

2 changes: 2 additions & 0 deletions solutions/02_helloName/helloName.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var name = prompt ("What's your name?");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! just one extra space in between prompt and the (. It will still work, but just harder to read

alert("Hello There " + name);
10 changes: 10 additions & 0 deletions solutions/02_helloName/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> </title>
<script type="type"></script>
</head>
<body>

</body>
</html>
3 changes: 3 additions & 0 deletions solutions/03_age/age.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var name = prompt ("What's your name?");
var age = prompt("What is your age?");
alert("Your name is" + name + "Your age is" + age);
Empty file added solutions/03_age/index.html
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions solutions/04_hello3ages/imdex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title> </title>
</head>
<body>

</body>
</html>
2 changes: 2 additions & 0 deletions solutions/09a_Length/09a.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var myString = "Thid is just a string"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing semicolon 😄

console.log(myString.length);
10 changes: 10 additions & 0 deletions solutions/09a_Length/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> </title>
<script src="length"></script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

length.js

</head>
<body>

</body>
</html>