Skip to content

Instantly share code, notes, and snippets.

View tesfayegari's full-sized avatar

tesfayegari

View GitHub Profile
//Syntactic Sugar
//1. Default or Optional Parameter
var container = document.getElementById('container');
function countDown(initial, final = 0, interval = 1){
var current = initial;
while(current >final){
container.innerHTML = current;
current -= interval;
}
}
@tesfayegari
tesfayegari / dabblet.css
Last active March 6, 2017 14:43
Your CSS Goes here
/*Practice your CSS here. By Tesfaye Gari */
/* Your CSS Goes here*/
.TestClass{
color: blue;
}
@tesfayegari
tesfayegari / dabblet.css
Last active March 28, 2020 21:30
selector {property: value;}
/* selector {property: value;}
element selector ex h1,p, a, etc
id selector if element has id of myID #myId is the selector
class selector if element has class of myClass then the selector is gonna be .myClass
Please do your CSS here
*/
@tesfayegari
tesfayegari / dabblet.css
Last active November 19, 2016 21:34 — forked from anonymous/dabblet.css
CSS
/* CSS */
@tesfayegari
tesfayegari / dabblet.css
Created November 19, 2016 21:11
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/