Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Day of the Week Condition Execution Challenge | Conditional Statements
course content

Зміст курсу

Introduction to TypeScript

Day of the Week Condition Execution ChallengeDay of the Week Condition Execution Challenge

Your first big TypeScript task!

There are 7 days in a week.

  • Everyone loves Friday and the weekends, and no one likes Monday;
  • I've written code blocks for you that will execute under certain conditions;
  • Your task is to write code that will check the condition of what day of the week it is today. If today is Monday, the first code block with the condition is executed. If it's Friday, the second block is executed, and so on. Implement this code by replacing the blanks(___) with your code;
  • You can use the hint and solution buttons if you have trouble understanding the code;
  • Don't hesitate to look at and analyze the solution; it will help you understand the correctness of your code.
1. Inside the blocks, you should have conditions that return true or false.
2. You can display output on the screen using the command console.log('text').

Все було зрозуміло?

Секція 2. Розділ 4
course content

Зміст курсу

Introduction to TypeScript

Day of the Week Condition Execution ChallengeDay of the Week Condition Execution Challenge

Your first big TypeScript task!

There are 7 days in a week.

  • Everyone loves Friday and the weekends, and no one likes Monday;
  • I've written code blocks for you that will execute under certain conditions;
  • Your task is to write code that will check the condition of what day of the week it is today. If today is Monday, the first code block with the condition is executed. If it's Friday, the second block is executed, and so on. Implement this code by replacing the blanks(___) with your code;
  • You can use the hint and solution buttons if you have trouble understanding the code;
  • Don't hesitate to look at and analyze the solution; it will help you understand the correctness of your code.
1. Inside the blocks, you should have conditions that return true or false.
2. You can display output on the screen using the command console.log('text').

Все було зрозуміло?

Секція 2. Розділ 4
some-alt