This file contains 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
function clock(){ | |
const tick = ( | |
<div> | |
<h1>The Time is:</h1> | |
<h2>time: {new Date().toLocaleTimeString()}</h2> | |
</div> | |
); | |
ReactDOM.render( | |
tick, | |
document.getElementById('root') |
This file contains 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
//Created by Jim Morrison, CodingMorrison.com | |
var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""); | |
var rot13Alphabet = "NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm".split(""); | |
var sample = "Lbh qrpelcgrq gur fnzcyr fhpprffshyyl"; | |
var caesar = function(sample) { | |
var result = ""; | |
for (var x=0; x<sample.length; x++) { | |
for (var y=0; y<alphabet.length; y++) { | |
if (sample[x]==alphabet[y]) { | |
result+=rot13Alphabet[y]; |