↳
I did draw it correctly because I failed to understand the actual definition of absolute positioning. Less
↳
My implementation: var words = sentence.split(' '); var wordLoc1 = find(words, input1); var wordLoc2 = find(words, input2); var differences = []; var min; for (var i = 0; i < wordLoc1.length; i++) { for (var j = 0; j < wordLoc2.length; j++) { differences.push(abs(wordLoc1[i] - wordLoc2[i])); } } min = minimum(differences); Did not implement min properly. Did not optimize for space of differences properly. Could not eliminate the need for two for loops. Less
↳
I did my best using bootstarp, HTML and CSS
↳
I did with dynamic design using HTML Table, CSS and JS
↳
myPromise.then((resolve, reject) => {}, catch((error) => {}, finally(() =>{});