Instructions(using JavaScript)
Write a program that converts English text to Morse code. Use prompt() to recieve user input and console.log() to display output. Code using '.' for a dot, '-' or '_' for a dash, separating letters by spaces and words by '/' or '|'. The program should be able to convert strings consisting of A-Z, 0-9, and basic punctuation. Use document.getElementById('result').innerHTML = your_output; to write program output to page.