Skip to content

Commit

Permalink
Week-work-program
Browse files Browse the repository at this point in the history
  • Loading branch information
SpantaAlizadeh10 authored Dec 29, 2023
1 parent 668b7b4 commit e2bfbc9
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Week-Work-calender/index.html
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>
44 changes: 44 additions & 0 deletions Week-Work-calender/script.js
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');
}

0 comments on commit e2bfbc9

Please sign in to comment.