azer 4225 days ago. link 1 point ▲ ▼Hey, check the functions below of it. "val" is defined as the last function in that scope. You may want to search for "function hoisting" if it looks weird for you.