-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
668b7b4
commit e2bfbc9
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<script src="script.js"> | ||
</script> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const day = prompt('Please Enter a day!'); | ||
|
||
switch (day){ | ||
case 'monday': | ||
document.write('plan cousre structure'); | ||
document.write(' go to the gym'); | ||
break; | ||
case 'tuesday': | ||
document.write('wacth code video'); | ||
break; | ||
case 'wednesday': | ||
case 'thursday': | ||
document.write("write code ecample"); | ||
break; | ||
case 'friday': | ||
document.write('record videos'); | ||
break; | ||
case 'saturday': | ||
document.write('Enjoy the weekend :D'); | ||
break; | ||
default: | ||
document.write('NOt a valid day!'); | ||
} | ||
|
||
|
||
if (day === 'monday'){ | ||
console.log('plan cousre structure'); | ||
console.log('go to the gym'); | ||
|
||
}else if (day === 'tuesday'){ | ||
console.log('wacth code video'); | ||
|
||
}else if (day === 'wednesday' || day === 'thursday'){ | ||
console.log("write code ecample"); | ||
|
||
}else if (day === 'friday'){ | ||
console.log('record videos'); | ||
|
||
}else if (day === 'saturday'){ | ||
console.log('Enjoy the weekend :D'); | ||
|
||
}else{ | ||
console.log('Not a valid day'); | ||
} |