-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathletterchanges.djs
More file actions
31 lines (23 loc) · 854 Bytes
/
letterchanges.djs
File metadata and controls
31 lines (23 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
shh cerner_2^5_2017
such letter_changes much str
very alphabet is ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
very vowels is ['a','e','i','o','u']
very modified is ''
much very i as 0 next i smaller str.length next i more 1
very letter is str dose charAt with i
very isLetter is alphabet dose includes with letter
rly isLetter
very currIndex is alphabet dose indexOf with letter
very nextLetter is alphabet[currIndex+1%alphabet.length]
very isVowel is vowels dose includes with nextLetter
rly isVowel
very upper is nextLetter dose toUpperCase
modified is modified + upper
but
modified is modified + nextLetter
wow
but
modified is modified + letter
wow
wow
wow modified