CS代考 # Exercise 4: Calculating cookies earned while away

# Exercise 4: Calculating cookies earned while away

Let’s say the user earns 100 cookies per second, and has 500 cookies. They close their tab, and reopen it in 10 seconds. Instead of restoring their cookie total to 500, it should initialize with 1500 cookies; the user should still earn their cookies-per-second while not using the app

Copyright By PowCoder代写 加微信 powcoder

HINT: It is impossible to run JS while the browser tab is closed. Instead, you’ll need to do all the calculations when the application loads.

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com