Single Variable Function Reduce Python Function Questions In Js