Introduction
Basics
Expressions and Operators
Statements
Loops
Function
Strings
Arrays
Script Tag
Console
Alert, Prompt, Confirm
BOM & DOM
Walking the DOM
Events and Other DOM Properties
Practice Problems
Interview Preparation
Sun, May 4, 2025, 03:57:13 PM
Problem 14
. Write a function to find mean of 5 numbers.
let
mean
=
(
a
,
b
,
c
,
d
,
e
)
=>
{
return
(
a
+
b
+
c
+
d
+
e
)
/
5
;
}
console
.
log
(
mean
(
1
,
2
,
3
,
4
,
5
)
)
;
// 3
Copy