A Pen by Tyren Thompson on CodePen.
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
The scope is the accessibility of variables, functions, or objects in some particular part of your code during runtime. Any variable that is declared outside of a function in JavaScript has global scope. | |
Block scopes are what you get when you use if statements. | |
Global scopes can be slow, because each time a function executes, it causes a temporary calling scope to be created. JavaScript searchers for the first item in the scope chain, and if it doesn't find the variable, it swells up the chain until it hits the global object. | |
Strict mode makes several changes to JavaScript semantics. It eliminates silent errors and instead throws them so that the code won't run with errors in the code. It will also point out mistakes that prevent JavaScript engines from doing optimizations. | |
A side effect method is a method which modifies some state variable value/arguments passed having a consequence beyond its scope, that is to say it has an observable effect besides returning a value (the main effect) to the invoker of the |
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
<html lang="en"><head> | |
<meta charset="utf-8"> | |
<title>Tyren Thompson Profile</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="styles.css"> | |
<link href="https://fonts.googleapis.com/css?family=Muli%7CRoboto:400,300,500,700,900" rel="stylesheet"></head> | |
<body> | |
<div class="main-nav"> | |
<ul class="nav"> |
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
<html lang="en"><head> | |
<meta charset="utf-8"> | |
<title>Tyren Thompson Profile</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="styles.css"> | |
<link href="https://fonts.googleapis.com/css?family=Muli%7CRoboto:400,300,500,700,900" rel="stylesheet"></head> | |
<body> | |
<div class="main-nav"> | |
<ul class="nav"> |
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
<head> | |
<title>The Tea Cozy</title> | |
</head> | |
<body> | |
<!-- Header --> | |
<header class="flex-container"> | |
<img src="https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-4/img-tea-cozy-logo.png"> | |
<nav> | |
<span><a href="#mission">Mission</a></span> | |
<span><a href="#store">Featured Tea</a></span> |
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
<head> | |
<title> | |
</title> | |
<link href="" type="text/css" rel="stylesheet"> | |
</head> | |
<body> | |
A Pen by Tyren Thompson on CodePen.