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.
- Calculate the Area of a rectangle by multiplying the
lengthby thewidth. - Return the calculated numeric area.
01EXAMPLE 1
Input
length = 5, width = 10Output
50Constraints
- Return the area as a number.
FundamentalsFunctionsMath
JavaScriptSystem handles I/O — write your function only
Loading...
3 Hidden
Input Arguments
length5
width10
Expected Output
50
Click RUN to test your solution