Created
October 16, 2014 23:25
-
-
Save Karlina-Bytes/74938b4882ab81b63866 to your computer and use it in GitHub Desktop.
For use with binToDecConvert.html. This function print the result of the binary-to-decimal conversion to the web page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************************* | |
* Displays an output message on the webpage. | |
* @param {String} message to display | |
********************************************************/ | |
function displayResult( message ) { | |
var resultArea = document.getElementById("resultArea"); | |
var content = ("<h4><em>" + message + "</em></h4>"); | |
resultArea.innerHTML = content; | |
esultArea.style.display = "block"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment