Skip to content

Instantly share code, notes, and snippets.

View jwgoedert's full-sized avatar

James Wesley Goedert jwgoedert

View GitHub Profile
@jwgoedert
jwgoedert / jsbin.fezoyaq.js
Last active January 17, 2017 20:45 — forked from anonymous/index.html
JS BinVariables// source http://jsbin.com/fezoyaq
/*Variables-our friends in the age of repetition
Variables are placeholders which allow programs to easily recall
information or actions, alter them, and implement complex operations
in a clear concise manner. They can be thought of as containers for
holding values of any data type including numbers, strings, booleans,
and even functions or objects.
*/
/*declaring a variable called num1 with "var" keyword
this simply creates a place in memory which can then be assigned to
@jwgoedert
jwgoedert / jsbin.pofozi.js
Last active January 17, 2017 20:36 — forked from anonymous/index.html
JS Binstring manipulation// source http://jsbin.com/pofozi
// Strings are our way of storing characters and they are ALWAYS
// contained in either 'single' or "double" quotes, but never a
// 'combination" of the two.
// String manipulation:
// Arithemetic operation on strings
//
var name = "James";
var greeting = "Hello" + " " + name;
console.log(greeting);
// above we are adding "Hello" with a space and the variable name
@jwgoedert
jwgoedert / jsbin.fafutew.js
Last active January 30, 2017 20:52 — forked from anonymous/index.html
Operators!
//Operators-the verbs of programming
// 1_Assignment
// The assignment operator "=" is used to "assign" values to
// variables often it is helpful to replace the "=" with the term
// "gets" to better understand how variables and values function.
// variable declared
var x;
console.log(x);
@jwgoedert
jwgoedert / jsbin.bicinew.js
Last active January 30, 2017 20:51 — forked from anonymous/index.html
JS BinDatatypes// source http://jsbin.com/bicinew
/*Datatypes come in both simple and complex varieties.
Below is a short list of the variety of datatypes one can use.
*/
var log =console.log;
//1_Numbers include all numeric values
var number1 = 1;//whole number
var number2 = 2.08765;//decimal
var number3 = number1/number2;
console.log(number1, number2, number3);
@jwgoedert
jwgoedert / jsbin.vaqufi.js
Last active January 30, 2017 20:50 — forked from anonymous/index.html
JS Bincontrol flow// source http://jsbin.com/vaqufi
//Control Flow:if, else if, else
//making big decisions and getting sh*t done
// these statements are used to control the flow of information and action
// and allow programs to make decisions based on such informationa and action
// if statements
"use strict";
console.log("beginning");
var timeInHrs = 9;
@jwgoedert
jwgoedert / jsbin.mutivuq.js
Last active January 30, 2017 20:50 — forked from anonymous/index.html
JS Binloops// source http://jsbin.com/mutivuq
// Loops: while, for, for in.
// Making your way through the world today.
// while loops address a condition and execute the code within {} as
// long as that statement holds true
"use strict";
var x = 0;
while (x === 0) {
console.log("we're ready for something");
}
@jwgoedert
jwgoedert / jsbin.rekikud.js
Last active January 30, 2017 20:49 — forked from anonymous/index.html
JS Binfunctions// source http://jsbin.com/rekikud
//Functions: programs within programs.
//a dream within a dream
var fullName = function(first, middle, last){
var person = {
FirstName: first,
MiddleName: middle,
Last: last
}
var newName = first + " " + middle + " " +last;
console.log(newName);
@jwgoedert
jwgoedert / jsbin.mutivuq.js
Last active January 17, 2017 20:39 — forked from anonymous/index.html
JS Binloops// source http://jsbin.com/mutivuq
// Loops: while, for, for in.
// Making your way through the world today.
// while loops address a condition and execute the code within {} as
// long as that statement holds true
"use strict";
var x = 0;
while (x === 0) {}
//console.log("we're ready for something");
@jwgoedert
jwgoedert / jsbin.rekikud.js
Last active January 17, 2017 20:48 — forked from anonymous/index.html
JS Binfunctions// source http://jsbin.com/rekikud
//Functions: programs within programs.
//a dream within a dream
//two phases of functions are declaration and invocation(or calling)
// declaration (anonymous function being declared as variable)
//
var fullName = function(first, middle, last){
var person = {
FirstName: first,
MiddleName: middle,
Last: last
/*Variables-our friends in the age of repetition
Variables are placeholders which allow programs to easily recall
information or actions, alter them, and implement complex operations
in a clear concise manner. They can be thought of as containers for
holding values of any data type including numbers, strings, booleans,
and even functions or objects.
*/
/*declaring a variable called num1 with "var" keyword
this simply creates a place in memory which can then be assigned to