How does the pre-Submitted (WIP) code get saved?

Tell us what’s happening:
I have been working on this challenge, but everytime i shut the browser window or navigate elsewhere the working code is lost and i’m having to re-write it. pls advise how can i save intermittantly ?

  **Your code so far**

function checkCashRegister(price, cash, cid) {
var change;
return change;
}

checkCashRegister(19.5, 20, [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.1], ["QUARTER", 4.25], ["ONE", 90], ["FIVE", 55], ["TEN", 20], ["TWENTY", 60], ["ONE HUNDRED", 100]]);
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36.

Challenge: Cash Register

Link to the challenge:

I think Cmd/Ctrl + S should save it to localStorage. And when you pass the challenge you get the option to download the code.

Also as long as you are not logged in it will save the code you submit.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.