Some of the PGs in the documentation are broken as variable declarations are missing (var), this usually happens to the camera but for others as well. Some examples:
It’s weird that we don’t have the same (I’m Linux + Google Chrome)
It seems that you are being forced to strict mode while I’m not.
After a quick search on the forum I could find this topic from 2019 where strict mode was an issue but @Deltakosh had it fixed since he wanted retrocompatibility, and enabling strict mode would be breaking a lot of PGs. Maybe a recent change had the strict mode enabled for some of us ?