Let's do some arithmetic. Jake, Sally, and Ted sell apples at the local farmers market. They have a total of 639 apples, and each person sets up a stand at different location. Let's see how their day at the farmers market goes!
Make sure to complete your work in the console. Even if you can do the math in your head, try it in JavaScript.
totalApples, jakesApples, sallysApples, tedsApples and soldApples. Print out each variable in the console to see what it's current value is.totalApples to jakesApples, sallysApples and tedsApples variables using the division operator.
jakesApples = totalApples / 3;
sallysApples to keep track.tedsApples to keep track.jakesApples.
x - (7 * 12)-= x * y).
totalApples. Assign that value to soldApples.
soldApples = totalApples - (jakesApples + ...)
validateApples(totalApples, soldApples, jakesApples, sallysApples, tedsApples);.* Only use the shorthand assignment operators on these tasks.