Python Loop Over String Javascript Mdn Map Array In Js