MCPcopy Create free account
hub / github.com/codemistic/Web-Development / translateCode

Function translateCode

MorseCode-Translator using JS/js/scripts.js:82–89  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

80
81
82function translateCode(code) {
83 translation = " "
84 splitCode = code.split(" ")
85 for (let i = 0; i < splitCode.length; i++){
86 translation += reversed.get(splitCode[i])
87 }
88 return translation
89}
90
91// makes the english word appear
92function encryptCode() {

Callers 1

encryptCodeFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected