Skip to content

Commit c9bc6ad

Browse files
added pseudocode for order please 6kyu
1 parent 364697a commit c9bc6ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

6kyus/js/yourOrderPlease.js

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
// output should still include the number in the word
44
// if input empty, output should be empty
55

6+
// separate words of the string into an array separated by the spaces
7+
// filter out numbers
8+
// add words of said numbers to key
9+
// sort and assign words to sorted numbers
610
function order(words) {}
711

812
console.log('is2 Thi1s T4est 3a', 'the answer is: ', 'Thi1s is2 3a T4est')

0 commit comments

Comments
 (0)