function decodeStringWithSpace(stringToDecode) {
		// Compare motion string with morse code table
		var decodedResult;
		console.log("String to decode is:", stringToDecode);
		for (var key in morseTable) {
			// If string matches with code in morse table
			if (key == stringToDecode) {
				decodedResult = morseTable[key] + " ";
				return decodedResult
			}
		}
		// If nothing is found, return empty string
		decodedResult = "";
		return decodedResult;
	}
// Decode the string with space after decoding

Decode the string with space after decoding
Decode the string with space after decoding
function decodeStringWithSpace(stringToDecode) {
		var decodedResult;
		console.log("String to decode is:", stringToDecode);
		for (var key in morseTable) {
			if (key == stringToDecode) {
				decodedResult = morseTable[key] + " ";
				return decodedResult
			}
		}
		decodedResult = "";
		return decodedResult;
	}
function decodeStringWithSpace ( stringToDecode ) { var decodedResult ; console . log ( "String to decode is:" , stringToDecode ) ; for ( var key in morseTable ) { if ( key == stringToDecode ) { decodedResult = morseTable [ key ] + " " ; return decodedResult } } decodedResult = "" ; return decodedResult ; }
Decode the string with space after decoding
Decode the string with space after decoding
// Compare motion string with morse code table
 // If string matches with code in morse table
 // If nothing is found, return empty string
