Is there a syntax error in this?
Console says:
Uncaught TypeError: Cannot set property 'textTransform' of undefined
>>52477656
>javascript
found your problem
>>52477656
it's text-transform
body.styledoesn't exist
>>52477656
getElementsByClassname returns an array (even if it's one item). The undefined is from the style. So it should be fixed if do you do a for loop over body.
>>52477656
classNames will give you an array of elements matching that class name. You need to either specify which item in the arry you want or use document.querySelector('.dicks')
or use more jquery
>>52477656
No. It says it's a TypeError, not a SyntaxError.
Read.
>>52477984
Or just access the first element: body[0].style
>>52477984
>>52478010
props for not telling him to use that mega-hipster-faggot[].forEach.callhack
>>52479139
>mfw I this hack is in an example in the W3C ShadowDOM working draft
https://www.w3.org/TR/shadow-dom/
>>52477656
>JavaScript syntax: object.style.textTransform="uppercase"
so
document.body.style.textTransform="uppercase"
You're welcome, nigger