-
Write a function called
billTotal
that can be used to calculate the total to be paid at a restaurant -- including tip and tax -- given the subtotal (i.e. cost of food and drinks). We can assume that the tip will be 15% and tax will be 9.5%. Make sure that the tip does not include the tax! -
Complete the below function called
range
that takes two integers as parameters,start
andend
, and returns an array containing all the whole numbers between them starting withstart
and up toend
(you can use a any loop. The function
Resources for learning web design & front-end development:
ONLINE
Design
You are managing a sales team and you are interested is analyzing some data related to their age and total sales. Take a moment to review the following data structure you will be analyzing:
var salesTeam = [{name: {first: 'Aleen', last: 'Atkins'}, age: 26, sales: '$2314'},
{name: {first: 'Alvaro', last: 'Angelos'}, age: 55, sales: '$1668'},
{name: {first: 'Denese', last: 'Dossett'}, age: 29, sales: '$9248'},
This assessment is a recorded assessment. Before you start, please remember to start recording your screen. Please only submit your video and gist once you have completely finished your solutions!
Time limit: 1 hour
Write a function that takes 3 words and returns a single count of all their letters.
The workflow for submitting this will be a little different than last time. After recording your video:
- Upload it to Google Drive
- Check the sharing settings. Make sure under Step 2 you either share with "Anyone with a link to the file" or "Share a file publicly"
- Submit a link to the video and a gist of your code in this form.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Data type | |
// Examples: String, number, boolean | |
// Data structure | |
// Examples: arrays, objects | |
var firstName = "Ram"; | |
var age = "30"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var library = { | |
books: { | |
orwell: ['1984', 'animal farm'], | |
hemingway: ['A Farewell to Arms', 'The Old Man and the Sea', 'The Sun Also Rises'] | |
}, | |
plays: { | |
shakespeare: ['romeo and juliet', 'macbeth'] | |
} | |
}; |