Spatial Architect

Easy+25 XP

Mission Briefing

The Royal Architects are designing a new courtyard. They need a tool that can instantly calculate the total stone required based on varying dimensions.

The Concept: Multiple Parameters

Functions aren't limited to a single input. You can pass multiple parameters into a function by separating them with commas, allowing for complex calculations involving several distinct variables.

The Objective

Your function receives two parameters: length and width.

  1. Calculate the Area of a rectangle by multiplying the length by the width.
  2. Return the calculated numeric area.

01EXAMPLE 1

Inputlength = 5, width = 10
Output50

Constraints

  • Return the area as a number.
FundamentalsFunctionsMath
JavaScript
Loading...
3 Hidden

Input Arguments

length5
width10

Expected Output

50

Click RUN to test your solution