0

How can I write a morse code? Plz help me in this code

https://code.sololearn.com/W3lHLkbmFIla/?ref=app

3rd Jul 2018, 9:41 PM
Sina
Sina - avatar
7 Réponses
+ 9
You can find some great examples of various methods in comments here. Just please don't copy any without giving credit to original author. https://www.sololearn.com/learn/4628/?ref=app
3rd Jul 2018, 9:49 PM
bobbie
bobbie - avatar
+ 3
Sina = ... .. -. .- Use a space or slash between letters. Double between words. Full table of letters/numbers are here: https://en.m.wikipedia.org/wiki/Morse_code
3rd Jul 2018, 10:15 PM
John Wells
John Wells - avatar
+ 3
Easiest way: array of strings with code. Indexed by 0..25 for letters 26..35 for numbers. Take string to convert to integer: string.charCodeAt(i). Personally, lowercase everything. Subtract the 'a' to get the index for letter: 'a'.charCodeAt(0). For numbers, subtract '0'.charCodeAt(0)+26.
3rd Jul 2018, 10:33 PM
John Wells
John Wells - avatar
0
I don't need the alphabet the morse yet I want to know how can I write morse code
3rd Jul 2018, 9:51 PM
Sina
Sina - avatar
0
plz write a example of a morse code with two or three letters of the morse that I can learn and write a morse code
3rd Jul 2018, 10:06 PM
Sina
Sina - avatar
0
I know that but I don't know how to write a morse js code I don't how to convert it in js😥😥😥
3rd Jul 2018, 10:17 PM
Sina
Sina - avatar
0
I want to write a code to convert
3rd Jul 2018, 10:18 PM
Sina
Sina - avatar