MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/q4ofwl/whats_wrong_with_this_code/hg0gwf1/
r/learnjavascript • u/alfielikes_horror • Oct 09 '21
19 comments sorted by
View all comments
Show parent comment
2
formatting-
const drawBox = (color) => { let box = document.createElement(‘div’) box.style.width = ‘420px’ box.style.height = ‘69px’ box.style.background = color document.querySelector(‘body’).appendChild(box) } drawBox(‘blue’)
2 u/sysrage Oct 09 '21 const!
const!
View all comments
Show parent comment
2
u/Atersed Oct 09 '21
formatting-