Basic JavaScript tips

switch statement – Javascript