Skip to content

Instantly share code, notes, and snippets.

View Ncreshon's full-sized avatar

Nicole Creshon Ncreshon

View GitHub Profile
@Ncreshon
Ncreshon / jsbin.qotidus.js
Last active June 12, 2017 05:22
JS Bin[Functions: Programs within progrms]// source https://jsbin.com/qotidus
//Functions//
/* Functions are like instructions that can be stored
* to use over and over again. They can be named, annonymous
* or assigned to a varible or constant. */
/* There are two phases of using functions.
* 1. Declaring the function-- creating it
* 2. calling or invocation of the function to use it */
@Ncreshon
Ncreshon / jsbin.bexagem.js
Created June 12, 2017 01:17
JS Bin[Loops: While, for, for-in]// source https://jsbin.com/bexagem
//Loops//
/* Loops are built-in features of JavaScript that allow
* us to execute a block of code as many times as needed */
//for Loops//
//There are 3 parts to a for loop.//
//startng point //
// ending point //
@Ncreshon
Ncreshon / jsbin.giwafot.js
Created June 11, 2017 17:09
JS Bin[Control flow: if, else if, else, and switch statements]// source https://jsbin.com/giwafot
//Control flow or Conditional statements//
//Remember truthy and falsey 0, NaN, null, false, undefined, and empty strings//
//are false and will make your conditional statement false//
//if, else if, else Statements//
/* If and else statements work together to evaluate a logical expression
* and run different statements based on the result. if statements
* can be used alone but an else statement must be used with an if.
@Ncreshon
Ncreshon / jsbin.gojoca.js
Last active June 11, 2017 17:26
JS Bin[String Manipulation]// source https://jsbin.com/gojoca
//String Manipulation//
/* String manipulation are the various ways to conveting strings*/
var hello = "Hello World!"
//Types of string manipulation functions//
//charAt() finds the character at a specified position (0 indexed)//
console.log(hello.charAt(2)); //consoles l//
//concat() combines one or more strings and returns the combined string//
// Operators//
/* Assignment Operators assign the value of the operand to the
* right of the operand on the left = */
var a = 1;
// Arithmetic Operators//
/* Arithmetic operators perform mathmatical operations on
* operands and return a result*/
console.log(2 + 2); // + addition//
console.log(2 - 2); // - subtraction//
@Ncreshon
Ncreshon / jsbin.caqabog.js
Created June 11, 2017 00:28
JS Bin[Datatypes (Simple & Complex)]// source https://jsbin.com/caqabog
/* Datatypes (Simple & Complex):
*Datatypes are classified as either simple or complex. Simple datatypes
*include numbers, string, Boolean, NaN, undefined, and null. They are
*immutable they don't hold a value, They return simple values and don't
*change the original value. They only take up a limited amount of space. They are
* stored by value.
*Complex datatypes consist of arrays, objects, and funtions.
*They aggregate other values. They hold an indefinite space od memory. They are
*copied by value.
* Number
@Ncreshon
Ncreshon / jsbin.hoqace.js
Created June 10, 2017 18:20
JS BinVariables, Const, Let// source https://jsbin.com/hoqace
/*
* Variables:
*
*Variables are continers used to hold values. Thes values can be any
*data type. Variables can be changed once they are defined.
*
* To create a variable we use the keyword var followed by the name .
*/
var firstName;
console.log(firstName);
@Ncreshon
Ncreshon / index.html
Created June 10, 2017 18:04
JS Bin Variables, Const, Let // source https://jsbin.com/hoqace
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Variables, Const, Let">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<title>Variables, Let, and Const</title>