Commit cce2dcb3 authored by William Paul Liggett's avatar William Paul Liggett

Moved comments around.

parent de8e8511
......@@ -19,8 +19,7 @@
});
// 50 ms display duration for the letter to appear and then disappear on the screen.
const DISPLAY_LETTER_DURATION = 50;
const DISPLAY_LETTER_DURATION = 50;
// Function by Mozilla Contributors, Feb 2018
// Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
......@@ -31,15 +30,14 @@
return Math.floor(Math.random() * Math.floor(max));
}
// The chosen random letter is first determined and then, eventually,
// the letter will be displayed to the user in a later code block.
// Note: The `chosen_letter' var will matche the CSS class ID in the HTML,
// as we'll use this later for the duration the letter is displayed.
function changeRandomLetter() {
var random_int = getRandomInt(3);
var chosen_letter = "";
// The chosen random letter is first determined and then, eventually,
// the letter will be displayed to the user in a later code block.
// Note: The `chosen_letter' var will matche the CSS class ID in the HTML,
// as we'll use this later for the duration the letter is displayed.
//
// Letter: O
if(random_int === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment