implement subscript operator js

Solutions on MaxInterview for implement subscript operator js by the best coders in the world