Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Making a Salary Calculator | Section
JavaScript Fundamentals
セクション 1.  22
single

single

bookChallenge: Making a Salary Calculator

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

You are assigned a task to build a salary calculator. The company has a fixed hourly pay for all employees. The salary is calculated by multiplying the number of hours worked by the fixed hourly rate.

Your tasks:

  • Declare and initialize a constant called HOURLY_RATE with a value of 25.00.
  • Declare and initialize a variable called hoursWorked with a value of 164.
  • Declare a variable called totalPay and set it equal to the product of hoursWorked and HOURLY_RATE.
  • Output the following message:
The calculated total payment is: X

Where X is the calculated totalPay.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  22
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt