0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<p>Congratulations! You are now a qualified programmer on Muffin’s team. How does a cat choose a human for itself? Nobody knows. But once it has chosen you, you need to start showing your best.</p>
1
<p>Congratulations! You are now a qualified programmer on Muffin’s team. How does a cat choose a human for itself? Nobody knows. But once it has chosen you, you need to start showing your best.</p>
2
<p>Know nothing about programming? No worries, we’ll teach you!</p>
2
<p>Know nothing about programming? No worries, we’ll teach you!</p>
3
<p>So what will you have to do? Write programs for your whiskered boss in JavaScript. First, you will write simple programs for the console, but will then switch to animating website interfaces.</p>
3
<p>So what will you have to do? Write programs for your whiskered boss in JavaScript. First, you will write simple programs for the console, but will then switch to animating website interfaces.</p>
4
<p>Let’s take a look at your workplace:</p>
4
<p>Let’s take a look at your workplace:</p>
5
<ul><li>On the left is the editor, that’s where you will write code.</li>
5
<ul><li>On the left is the editor, that’s where you will write code.</li>
6
<li>The console is on the right, that’s where your programs will output the results of their work.</li>
6
<li>The console is on the right, that’s where your programs will output the results of their work.</li>
7
<li>By default, programs are run automatically, but you can change it in settings.</li>
7
<li>By default, programs are run automatically, but you can change it in settings.</li>
8
<li>The list of tasks for the day is in the lower right corner. The tasks that you completed correctly are highlighted.</li>
8
<li>The list of tasks for the day is in the lower right corner. The tasks that you completed correctly are highlighted.</li>
9
</ul><p>Everything is set up, including a cup of tea. Let’s go!</p>
9
</ul><p>Everything is set up, including a cup of tea. Let’s go!</p>
10
<p><b>First task</b>: write a program for calculating the nutritional value of 50 grams of milk (Muffin’s morning snack).</p>
10
<p><b>First task</b>: write a program for calculating the nutritional value of 50 grams of milk (Muffin’s morning snack).</p>
11
<p>Let’s do it together. Each program is a set of commands. In JavaScript, commands are separated with a semicolon, ;. To complete the task, enter one command in the console:</p>
11
<p>Let’s do it together. Each program is a set of commands. In JavaScript, commands are separated with a semicolon, ;. To complete the task, enter one command in the console:</p>
12
50 * (42 / 100);<p>That’s our program, just one command. But it works!</p>
12
50 * (42 / 100);<p>That’s our program, just one command. But it works!</p>