Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Create a Sum Function | Functions in JavaScript
Introduction to JavaScript
セクション 6.  6
single

single

bookChallenge: Create a Sum Function

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

タスク

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

Implement a function sum that takes three arguments (a, b, and c) and returns their sum.

Next, call this function twice, using the following sets of arguments:

  1. Use 24, 12, and 32 for the first function call and store the result in the variable sum1.
  2. Use 12, 42, and 5 for the second function call and store the result in the variable sum2.

Finally, print the results of both function calls.

The output should be:

sum1 = 68
sum2 = 59

解答

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

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

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

セクション 6.  6
single

single

AIに質問する

expand

AIに質問する

ChatGPT

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

some-alt