Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Task - Adjusting Salary with a Bonus | Manipulating Data
Introduction to JavaScript
course content

Kursinhalt

Introduction to JavaScript

Introduction to JavaScript

1. Getting Started
2. Manipulating Data
3. Conditional Statements

book
Task - Adjusting Salary with a Bonus

Aufgabe

Swipe to start coding

Your company has decided to reward employees with a performance bonus of 2.5%. You need to update the salary calculator to include this bonus in the final salary calculation.

Your task is to extend the program by doing the following:

  • Declare a new constant called BONUS with a value of 2.5;
  • Before showing the output, multiply the value of totalPay with BONUS and store the result back in totalPay. (Use the shorter syntax for this arithmetic operation);

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 10
toggle bottom row

book
Task - Adjusting Salary with a Bonus

Aufgabe

Swipe to start coding

Your company has decided to reward employees with a performance bonus of 2.5%. You need to update the salary calculator to include this bonus in the final salary calculation.

Your task is to extend the program by doing the following:

  • Declare a new constant called BONUS with a value of 2.5;
  • Before showing the output, multiply the value of totalPay with BONUS and store the result back in totalPay. (Use the shorter syntax for this arithmetic operation);

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 10
Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
Wir sind enttäuscht, dass etwas schief gelaufen ist. Was ist passiert?
some-alt