HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>Just 21 calories! Muffin is happy! Happy about your first program, too.</p>
1 <p>Just 21 calories! Muffin is happy! Happy about your first program, too.</p>
2 <p><b>Second task</b>: write a program for calculating the nutritional value of lunch and dinner. For lunch, Muffin loves his crunchy cat food, around 80 grams. For dinner, it’s the same fragrant, crunchy dry food, but a bit more, around 120 grams. That’s what a cat needs to get ready for nightly training.<em>Yes, food diversity is not Muffin’s strongest suit</em>.</p>
2 <p><b>Second task</b>: write a program for calculating the nutritional value of lunch and dinner. For lunch, Muffin loves his crunchy cat food, around 80 grams. For dinner, it’s the same fragrant, crunchy dry food, but a bit more, around 120 grams. That’s what a cat needs to get ready for nightly training.<em>Yes, food diversity is not Muffin’s strongest suit</em>.</p>
3 <p>You cannot write this program with a single line of code, you’ll need two. Don’t forget about the ; mark.</p>
3 <p>You cannot write this program with a single line of code, you’ll need two. Don’t forget about the ; mark.</p>
4 <p>By the way, in JavaScript, you can use special commands for tips. They are called<em>comments</em>, and the code inside is never executed. As a rule, comments are used for notes to yourself, to other developers or yourself in the future. There two types of comments: one-line and multiline. Example of comments:</p>
4 <p>By the way, in JavaScript, you can use special commands for tips. They are called<em>comments</em>, and the code inside is never executed. As a rule, comments are used for notes to yourself, to other developers or yourself in the future. There two types of comments: one-line and multiline. Example of comments:</p>
5 // This line will not be executed. One-line comment. /* None of these lines of code will be executed. Because it’s a multi-line comment. */
5 // This line will not be executed. One-line comment. /* None of these lines of code will be executed. Because it’s a multi-line comment. */