Learning Typed Array in JavaScript