Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Calculating Area of a Trapezium | Getting Started
Introduction to JavaScript

bookChallenge: Calculating Area of a Trapezium

Task

Swipe to start coding

A trapezium is a four-sided shape with at least one pair of opposite sides that are parallel. For example:

You are required to calculate the area size of this trapezium. Following is the formula for calculating the area of a trapezium.

Write a console.log statement which outputs the correct area size of the trapezium shown in the diagram. The value of a is 13, b is 21 and h is 10.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 7
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

Awesome!

Completion rate improved to 1.33

bookChallenge: Calculating Area of a Trapezium

Swipe to show menu

Task

Swipe to start coding

A trapezium is a four-sided shape with at least one pair of opposite sides that are parallel. For example:

You are required to calculate the area size of this trapezium. Following is the formula for calculating the area of a trapezium.

Write a console.log statement which outputs the correct area size of the trapezium shown in the diagram. The value of a is 13, b is 21 and h is 10.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 7
single

single

some-alt