The website I choose for this week’s blog is a brand website for a swiss beer company, White Frontier Brewery.
The website is very beautifully designed by a company called McArnolds in Belgium. What’s interesting about this website is that the landing page asks if the visitor is above the legal drinking age in their country, if you click yes, the button would take you to the homepage, and if you click no, you will go the the web-design company, McArnolds’s homepage.
var is a very keyword that declares a variable, optionally initializing it to a value. var affects the variable scope: Inside a function, all undeclared variables are global. Only those declared with var are local. This becomes very important when you have a lot of scripts running on the same page.