Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Adjusting Salary with a Bonus | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: Adjusting Salary with a Bonus

Tâche

Swipe to start coding

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

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).

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 24
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Adjusting Salary with a Bonus

Glissez pour afficher le menu

Tâche

Swipe to start coding

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

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).

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 24
single

single

some-alt