0
How do you add text to the end of an alert.
See the end of my code and let me know what im doing wrong plz. Very short code. X) https://code.sololearn.com/WvvD3u4ayHYY/?ref=app
1 Odpowiedź
+ 3
//You can simply remove function
var hMe = prompt("How many extras taken", '6');
var nDT = prompt('How many days since last apt?');
var numExtras = hMe;
var numDaysTill = (30 - nDT);
var noS = (numDaysTill * 1.5) - hMe;
alert(noS+' Strips');
alert(30 - nDT)+' days left.';
https://code.sololearn.com/Wz8ed17yKM2V/?ref=app