BuK/IIm21/Vorlesung 6 Hildebrand
Aus ProgrammingWiki
Wiki-Quelltext dieser Seite.
<language>Javascript</language>
Folie 20:
<code id="6267a2bbc4b5a">
function emilPost(list){
for(i = 0; i < list.length; i++){
}
}
function createXWord(list,indexes){
word = ""
for(i = 0; i < indexes.length; i++){
word += list[indexes[i]][0]
}
return word
}
function createYWord(list,indexes){
word = ""
for(i = 0; i < indexes.length; i++){
word += list[indexes[i]][1]
}
return word
}
</code>
<run id="6267a2bbc4ba8">
k = [["001","0"],["01","011"],["01","101"],["10","001"]]
console.log(createXWord(k,[0]))
</run>