filmov
tv
JavaScript for Beginners #47 Coding Challenge 7

Показать описание
Here, we will look at a simple coding challenge that asks us to create a constructor function that will create an object for each customer at a restaurant.
//Set up a constructor function that creates a new object with the first name and last name of the customer, the subtotal, the tax rate, and the level of service they received: good or excellent
//Next, set up methods that gives the full name, the tip, and the tax. If the person recieved good service, the tip percentage should be 18%, if the person recieved excellent service, it should be 25%.
//Lastly, set up a method that calculates the total bill and returns a receipt with the customer's full name.
//Test Data: "Mary", "Beth", 200, .1, "excellent"
//Test Data: "Becky", "Anderson", 100, .05, "good"
0:00 Instructions for our coding challenge
1:47 Setting up a constructor function
3:40 Testing our function
4:26 Setting up the getFullName method
5:20 Setting up the getTax method
6:18 Setting up the getTip method
7:46 Setting up the getTotalBill method
10:00 Viewing our first customer receipt
10:55 Viewing our second customer receipt
JavaScript Playlist:
MDN Constructor:
W3 Schools Constructors:
MDN Objects:
NodeJS:
VS Code:
//Set up a constructor function that creates a new object with the first name and last name of the customer, the subtotal, the tax rate, and the level of service they received: good or excellent
//Next, set up methods that gives the full name, the tip, and the tax. If the person recieved good service, the tip percentage should be 18%, if the person recieved excellent service, it should be 25%.
//Lastly, set up a method that calculates the total bill and returns a receipt with the customer's full name.
//Test Data: "Mary", "Beth", 200, .1, "excellent"
//Test Data: "Becky", "Anderson", 100, .05, "good"
0:00 Instructions for our coding challenge
1:47 Setting up a constructor function
3:40 Testing our function
4:26 Setting up the getFullName method
5:20 Setting up the getTax method
6:18 Setting up the getTip method
7:46 Setting up the getTotalBill method
10:00 Viewing our first customer receipt
10:55 Viewing our second customer receipt
JavaScript Playlist:
MDN Constructor:
W3 Schools Constructors:
MDN Objects:
NodeJS:
VS Code:
JavaScript for Beginners #47 Coding Challenge 7
JavaScript Tutorial 47 - Array Sort in JavaScript | Programming For Beginners
JavaScript Tutorial for Beginners: Learn JavaScript in 1 Hour
Learn JavaScript - Full Course for Beginners
The Odin Project VLOG | Day 47 CODING For BEGINNERS | Foundations JavaScript 'sumAll' Exer...
JavaScript Crash Course - Tutorial for Complete Beginners
JavaScript Programming - Full Course
Object-oriented Programming in JavaScript: Made Super Simple | Mosh
Create TicTacToe Game with HTML, CSS and JavaScript! (Just Coding)
JavaScript Programming Tutorial for Beginners
What JavaScript framework you should learn 👩💻 #programming #technology #software #code #tech...
Writing in-browser JavaScript and Developer Console | Web Development Tutorials #47
Day-47 || Javascript 100days coding challenge #shorts #shortsvideo #trend #trending
Coding 'KeyBoard Warrior' in 9 min 47 sec (plain browser Javascript)
JavaScript Course for Beginners 2020 - Learn JavaScript from Scratch!
JavaScript DOM Manipulation – Full Course for Beginners
JavaScript Tutorial for Beginners | Learn Functional Programming with JavaScript ES6+
CSS Tutorial for Beginners - 47 - Web Forms Part 2
FREE JavaScript Programming ( Full Course ) Beginner to Advance
Code Tetris: JavaScript Tutorial for Beginners
JavaScript Full Course for Beginners | Complete All-in-One Tutorial | 8 Hours
JavaScript tutorial 3/24: Named colors | Draw with code project | Coding for beginners
Build An Offline JavaScript Calculator With 47 Lines of Code - PWA Tutorial
JavaScript Full Course | JavaScript Tutorial For Beginners | JavaScript Training | Edureka
Комментарии