Skip to content

Instantly share code, notes, and snippets.

View Mattteo1220's full-sized avatar
🎯
Focusing

Matthew McEntire Mattteo1220

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
Scope has two parts, global and local. Scope has to do with Variables and using these variables within your code and more specifically functions. Global variables can be used all around in your code. Local variables are specific to their parent functions.
Global variables are avoided because they can be called within functions and potentially changed or altered created hard to find bugs.
Strict mode in JS helps the user write strict code. for example, foo = "foo fee foo foam"; is not strict. It is missing the Var keyword. This needs to be added in. STrict enforces the Var keyword use on all variables.
Side affects are bugs or errors produced from global variables called within functions and it alters their true meaning. also, affects can be caused by not using strict mode.
Variable hoisting I can't define right now. I'll get back to you on that.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@Mattteo1220
Mattteo1220 / index.html
Created March 12, 2017 23:51
max/min drill solution max/min drill solution // source https://jsbin.com/qixeqo
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="max/min drill solution">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>max/min drill solution</title>
</head>
<body>
x
@Mattteo1220
Mattteo1220 / index.html
Created March 8, 2017 03:07
max/min drill solution max/min drill solution // source https://jsbin.com/wupeli
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="max/min drill solution">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>max/min drill solution</title>
</head>
<body>
x
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">