Learn localStorage by Building a Todo App - Step 5

Tell us what’s happening:

Your code so far

const taskData = [];
let currentTask = {


This code doesn’t pass because there are spaces between the brackets, please fix.

in order to pass the code must be like this

const taskData = [];
let currentTask = {};


The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 5

I think it is kept this way to maintain a consistent coding style.

It still shouldn’t be flagged as wrong, am I supposed to just assume there isn’t going to be code put into that object, if a list needed to be created with key pair values, I would of course need to open the brackets up.

All that strict syntax does is confuse beginners, if it doesn’t effect functionality, it should not be considered wrong.

You can always open an issue here to get more insight about this. But I do agree that something like this would cause a camper to think hard about why the test is failing.

Yeah for sure, I suppose I shall report it, the way I see it, learning the concepts is much more important than how you style your brackets.