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
29 changes: 0 additions & 29 deletions README.md

This file was deleted.

9 changes: 9 additions & 0 deletions solutions/01_hello_html/Untitled1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title> </title>
</head>
<body>
"Hello, World"
Copy link
Member

Choose a reason for hiding this comment

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

strings in HTML are treated as such, so we don't need to wrap them in quotes :)

</body>
</html>
1 change: 0 additions & 1 deletion solutions/01_hello_html/hello.html

This file was deleted.

Empty file.
9 changes: 9 additions & 0 deletions solutions/02_headBody_html/Untitled1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title> "Hello!" </title>
</head>
<body>
"World!"
</body>
</html>
Empty file.
10 changes: 10 additions & 0 deletions solutions/09a_length/Untitled1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> </title>
<script src="length.js"> </script>
</head>
<body>

</body>
</html>
10 changes: 10 additions & 0 deletions solutions/09a_length/Untitled2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title> </title>
<script src="length.js"></script>
</head>
<body>

</body>
</html>
Empty file added solutions/09a_length/index.html
Empty file.
5 changes: 5 additions & 0 deletions solutions/09a_length/length.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


var myString = "This is a string";

console.log(myString.length);
Empty file.
57 changes: 57 additions & 0 deletions solutions/10_roman_js/roman.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
function IntegerToRoman(input){
if(input < 1 || input > 1000)
return "This is an invalid number";
var s ='';
while(input >= 1000){
s += "M";
input -= 1000;
}
while(input >= 900){
s += "CM";
input -= 900;
}
while(input >= 500){
s += "D";
input -= 500;
}
while(input >= 400){
s += "CM";
input -= 400;
}
while(input >= 100){
s += "C";
input -= 100;
}
while(input >= 90){
s += "XC";
input -= 90;
}
while(input >= 50){
s += "L";
input -= 50;
}
while(input >= 40){
s += "XL";
input -= 40;
}
while(input >= 10){
s += "X";
input -= 10;
}
while(input >= 9){
s += "IX";
input -= 9;
}
while(input >= 5){
s += "V";
input -= 5;
}
while(input >= 4){
s += "IV";
input -= 4;
}
while(input >= 1){
s += "I";
input -= 1;
}
}