A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Config.fs
-
-
@sean thank you
-
@sean how do i know where the comma should be? I know im stupid :)
-
-
@scoller
In{}
(object) and[]
(array), there could be several items. Each item should be separated by comma,
. Only last item could omit,
.
By examplesomeObject: { someProperty: someValue , anotherProperty: anotherValue , lastProperty: lastValue }, //< - this object also could be an element of other list someArray: [ someElement, otherElement, lastElement //< - you can omit comma here. ] // < - You can omit last comma of list.
-
@sean so you mean like {nothing,nothing}?
-
@scoller right.
-
@sean but i mean where is the brackets where the comma should be. For an example high up or low down in the code
-
@scoller Well, that is a just grammar of JavaScript. So…
Hmmm…
Just remember these.- Every bracket(
[]
,{}
) should be closed somewhere. - Nested brackets should be matched their opening and closing.
- All Items should be separated with comma
- All text string should be quoted by quotation mark (`, " or ')
- true/false (boolean value) and number should not be quoted.
These are common rules for config.js
- Every bracket(
-
@sean thank’s for the help will try that