Skip to content
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
19 changes: 19 additions & 0 deletions solutions/04_grade/grade.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var grade = 100;

if (grade <= 65)
{
console.log("F");
}
else if(grade <= 75)
{
console.log("C");
}

else if(grade <= 85);
{
console.log("B")
}
else
{
console.log("A")
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is great!

Just make sure to not follow if statements with semicolon (else if(grade <= 85); on line 5), and do add semicolons after expressions like console.log() (lines 14 and 18)

12 changes: 12 additions & 0 deletions solutions/09a_length/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title> </title>

<script src="length.js"></script>

</head>
<body>

</body>
</html>
3 changes: 3 additions & 0 deletions solutions/09a_length/length.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var myString = "length";

console.log(myString.length);