We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give this function the taskArr as a variable so It can be used whenever I need to update the localStorage provided the right array :
taskArr
localStorage
array
todo-list/src/crud.js
Lines 3 to 6 in ab9ced7
call addTaskToStorage(taskArr) instead of localStorage.setItem('tasksList', JSON.stringify(taskArr)); in the following lines of code :
addTaskToStorage(taskArr)
localStorage.setItem('tasksList', JSON.stringify(taskArr));
Lines 19 to 31 in ab9ced7
Lines 33 to 46 in ab9ced7
todo-list/src/index.js
Lines 74 to 77 in ab9ced7
todo-list/src/methods.js
Lines 13 to 15 in ab9ced7
Also export the addTaskToStorage function and import it in both methods.js and index.js
export
addTaskToStorage
methods.js
index.js
The text was updated successfully, but these errors were encountered:
use spread operator [...Array(storeLength).keys()] to generate a JavaScript array containing 1 through to storeLength :
[...Array(storeLength).keys()]
storeLength
Line 28 in ab9ced7
Sorry, something went wrong.
No branches or pull requests
Give this function the
taskArr
as a variable so It can be used whenever I need to update thelocalStorage
provided the rightarray
:todo-list/src/crud.js
Lines 3 to 6 in ab9ced7
call
addTaskToStorage(taskArr)
instead oflocalStorage.setItem('tasksList', JSON.stringify(taskArr));
in the following lines of code :todo-list/src/crud.js
Lines 19 to 31 in ab9ced7
todo-list/src/crud.js
Lines 33 to 46 in ab9ced7
todo-list/src/index.js
Lines 74 to 77 in ab9ced7
todo-list/src/methods.js
Lines 13 to 15 in ab9ced7
Also
export
theaddTaskToStorage
function and import it in bothmethods.js
andindex.js
The text was updated successfully, but these errors were encountered: