function mean(arr) {
let sum = 0;
for (let i = 0; i < arr.length; i++) {
sum += arr[i];
}
return sum/arr.length;
}
let arr = [25, 10, 5, 15, 20];
console.log(mean(arr));
// Console:
// 15
Continue reading “Prompt ֆունկցիա. JavaScript”
Day: November 9, 2023
Body language
a. Match the words with the pictures.
J _ 1. make eye contact
H _ 2. fold your arms
D _ 3. lean forward
E _ 4. sit back
C _ 5. avoid eye contact
I _ 6. gesture
B _ 7. raise your eyebrows
F _ 8. look nervous
G _ 9. give someone a warm smile
A _ 10. nod your head