Save in LocalStrorage an array with dates | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Save in LocalStrorage an array with dates

Hi, i am doing a web page that save an array with the actual date and the start of day for learn to use the LocalStorage with Arrays and Dates, but when i show the dates, the web page show me an error, pls help me. The Code: https://code.sololearn.com/WFZZ9tu4iMz4/#html

17th Nov 2017, 4:39 AM
Emmanuel David Angarita Quintanilla
Emmanuel David Angarita Quintanilla - avatar
5 Answers
+ 1
I can't help in LocalStorage areas, vbut LocalStorage is covered in HTML5 lesson in: https://www.sololearn.com/Course/HTML/?ref=app
17th Nov 2017, 4:47 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
The Javascript of Sololearn code playground is run from code.sololearn.com so there is no local storage access for you. Try your code on localhost or actual web server.
17th Nov 2017, 4:47 AM
Calviղ
Calviղ - avatar
0
I did the course, but i don't understand because when i load the date (in milliseconds) and convert to a date, the web page gives me a error.
17th Nov 2017, 4:52 AM
Emmanuel David Angarita Quintanilla
Emmanuel David Angarita Quintanilla - avatar
0
I am doing the code in sublime text and i doing the tests in my PC, and y copy and paste the code in sololearn for do the question. I tried convert the millisecond to int with a parseInt but the code code not work
17th Nov 2017, 5:35 AM
Emmanuel David Angarita Quintanilla
Emmanuel David Angarita Quintanilla - avatar
0
Guys help me how do i get the 10% salary using java .. example my salary is 15000 then the percentage of my salary is 1500 then what is the code ?
17th Nov 2017, 5:44 AM
Pretty
Pretty - avatar