This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==================================== Hyper Text Markup Language (HTML) =============================== | |
==> Opening and Closing Tags | |
each tag typically comes with a paired ending tag that begins with a forward-slash | |
<tag_example></tag_example> | |
some tags are self closing and will only have one tag which does or does not ends with a forward-slash | |
<tag_example/> | |
<tag_element> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===== Document Object Model (DOM) Manipulation & Event Fundamentals ==== | |
Structured representation of the HTML document that allows JS to access and select elements and | |
styles to manipulate them (i.e. change text, HTML attributes and CSS styles). Automatically created | |
once browser loads HTML and stored in a tree structure with nodes. Not JS, but rather apart of web | |
api's and interact with JS. | |
Document object is the entry-point into DOM | |
.querySelector('.message') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> Can use imperative or declarative paradigms and is very flexible. | |
==> First-class functions (treat functions as variables, passing a function into another function); | |
powerful; allows for functional programming. | |
==> Dyanmically-type language: no data type definitions, known at runtime and can be automatically changed | |
==> Concurrency model is JS handling multiple tasks at the same time. | |
==> Event Loops manage the Single-Thread (executed one task at a time) by taking long running tasks, | |
executing them in the background, then placing them back in the thread when finished. The Event Loop | |
prevent non-blocking behavior | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================================================================================================================== | |
ARRAY METHODS | |
============================================================================================================================== | |
const family = ['Malaika', 'Jahdai']; | |
arr.push() | |
==> add to end of array > family.push('Daaimah'); | |
==> mutates length > console.log(family); | |
==> return length of new array ['Malaika', 'Jahdai', 'Daaimah'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> TOOLS | |
console.warn() | |
console.error() | |
console.table() ==> formatted table with index and value | |
'use strict'; ==> opts out of silen errors for scripts | |
Google Chrome breakpoint settings ==> click the line number to pause execution at that point and | |
observe scope tab to determine what is occuring at the breakpoint | |
==> COMMON ISSUES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__title__ = 'Dice' | |
__author__ = 'Assassin' | |
__version__ = '1.2' | |
import clr | |
clr.AddReferenceByPartialName("Fougerite") | |
import Fougerite | |
import System | |
from System import * | |
import math |