In this lesson, we will look at a simple coding challenge involving if/else statements.
0:00 Introduction
0:31 Coding challenge steps
1:49 Coding challenge solution part 1
4:04 Coding challenge solution part 2
6:27 Coding challenge solution part 3
//John has test scores of: 90, 81, 55, 70, and 80
//Megan has test scores of: 88, 75, 87, 80, and 84
//1) Calculate each person's current class score by finding the average of the grades
//Average: sum of the numbers / number of numbers
//2) Log to the console who has a higher class score using if/else statements
//3) What happens if the scores are equal?
JavaScript Playlist:
• JavaScript for Beginners
MDN if/else:
https://developer.mozilla.org/en-US/d...
NodeJS:
nodejs.org
VS Code:
code.visualstudio.com
Auf dieser Seite können Sie das Online-Video JavaScript for Beginners Lesson #14 Coding Challenge 1 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer GreeneMath.com 06 Januar 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 506 Mal angesehen und es wurde von 21 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!