js 11 global and local variables
var created outside func can be used both places
var created inside func can't be used both places