function getMilk (money) { // this will take take the money you put in and use the modula to find the change received (remainder) when you divide the money by 1.5 and return the total return money % 1,5; } // this variable saves the result of running the function let change = getMilk(4)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter