관리 메뉴

Silver Library (Archived)

Example of 'Array inside a JS Object' 본문

Personal DB/Mainly for Front-end

Example of 'Array inside a JS Object'

Ayin Kim 2020. 11. 24. 11:43
반응형

Array inside a JavaScript Object? - Stack Overflow

 

Array inside a JavaScript Object?

I've tried looking to see if this is possible, but I can't find my answer. I'm trying to get the following to work: var defaults = { 'background-color': '#000', color: '#fff', weekdays: {['sun...

stackoverflow.com

var defaults = {

 backgroundcolor: '#000',

 color: '#fff',

 weekdays: ['sun','mon','tue','wed','thu','fri','sat']

};

'Personal DB > Mainly for Front-end' 카테고리의 다른 글

[basic] The web and web standards  (0) 2021.02.28
[JS] Resize the screen, then change the colour  (0) 2020.11.26
JavaScript - explanation of 'Property'  (0) 2020.11.26
What is DOM?  (0) 2020.11.25
JavaScript Expression?  (0) 2020.11.24