Skip to content

Instantly share code, notes, and snippets.

View Masheen88's full-sized avatar

Matthew Cox Masheen88

View GitHub Profile
@Masheen88
Masheen88 / colorfulConsoleLogs.js
Last active September 4, 2024 19:33
Colorful Console Logs!
//NOTE colored console log
//Colors the console log text blue and the font size 30px
someCoolVariable = "Hello World!";
//Outputs red text
// `Text/Variables/Etc..`,`CSS Styles`
console.log(`%c Hello World!`, `color: red;`); // %c is a placeholder for css styling
@Masheen88
Masheen88 / gist:4a2fbc40d9ed2c191485331a2ec0f71f
Last active September 5, 2024 06:38
Multiply numbers using the forEach method
console.log("this is my test page:");
//1. need a set of numbers to multiply
let myNumbers = [10, 15];
console.log("This is my original Array", myNumbers);
//2. done need a function to multiply things
// we need an parameter to pass into our function