The task is the following - in input there are some English letters which I want to replace by values located in jap and put in outputArr according to dictionary in eng (same position).
But I really don't understand how to make such loop / if to make it work.
<script>
var input = "agde";
var inputArr = input.split('');
var outputArr = [];
var eng= ["a","b","c","d","e","f","g"];
var jap = ["あ","び","を","ご","で","え","よ"];