Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Task - Calculate Area of a Trapezium | Getting Started
Introduction to JavaScript
course content

Contenu du cours

Introduction to JavaScript

Introduction to JavaScript

1. Getting Started
2. Manipulating Data
3. Conditional Statements

book
Task - Calculate Area of a Trapezium

Tâche

Swipe to start coding

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

<< Image Here >>

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

<< Image Here >>

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 desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 7
toggle bottom row

book
Task - Calculate Area of a Trapezium

Tâche

Swipe to start coding

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

<< Image Here >>

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

<< Image Here >>

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 desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 7
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt