That is not an error. The following lines of code do the same job.
var linksToUnlink = document.querySelectorAll('[href="###"]');
var linksToUnlink = document.querySelectorAll('[href="###"]'),
The second sample of code has a larger benefit in that it doesn't give the impression that multiple variable statements are okay, and serves to reinforce that variables should be declared in the one place from the start of function or the code.
I hope that you at some stage learn how to control SharePoint as well.