I am new to Scrimba and jumped into this course since I found it interesting. I loved segments 1 to 6. But when it got to segment 7, I found myself confused. Since I don't know Javascript yet, when they just started typing the JavaScript, I felt like .. where did this come from.
Question: Is there a course segment in Scrimba that would explain the JavaScript code that was used (since it wasn't really explained thoroughly in this CSS Variables segment). Is there a segment I can go to that would explain the "document.querySelector(':root') and other Javascript that was used (line by line and piece by piece):
var root = document.querySelector(':root');
var rootStyles = getComputedStyle(root);
var red = rootStyles.getPropertyValue('--red');
console.log('red: ', red);
root.style.setProperty('--red', 'green');
Then, when I was in segment 8, it mentioned that there was a link to the CSS Grid course in the "About" section of the screencast, but I don't know where the "About" section in the screencast can be found. Can someone explain? PS: I like that the CSS is being fully explained, but the JavaScript was not (since I am very new and needed more information).
Can someone advise me, .. I'd appreciate any help. I apologize for this very rudimentary question.
Thanks,
Gary
