---
# System prepended metadata

title: Javascript

---

Ease is a far greater threat to ***progress*** than ***hardship***. 

*:Denzel Washington*

----

# JavaScript (The Simple Parts)

----

### What is JavaScript

**MDN**: *JavaScript is an interpreted multi-paradigm, dynamic language with types and operators, standard built-in objects, and methods. Its syntax is based on the Java and C languages — many structures from those languages apply to JavaScript as well. JavaScript supports object-oriented programming with object prototypes and classes. It also supports functional programming.*

----

Language Specs: [ECMAScript](https://tc39.es/ecma262/)
MDN Documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript

----

### Why use JavaScript

The web is full of complex actions that involve capturing data and sending data synchronously and asynchronously. Any actions taking on a web page likely uses Javascript and its catalyst to perdform that action.

- Buttons
- Links
- Forms
- Key strokes 
- Advanced actions that involve the Client-Server Model

----

### Modern Applications of JavaScript

- Artificial Intelligence
- Machine Learning
- Decentralized Applicaiton (Crypto && Web 3.0)
- Gaming
- Robotics
- **Cloud Computing**
- *Anything you can think of......*

----

### Variables

Its a named container in memory that references a value in othere words.  Variables store data.

```
// declaring a variable and assiging it a value. <--This is a comment in javascript

var name = 'Jordan'
var age = 32
var isBigger = 7 > 8 // false
```

----


### Variables Types

`var`: ***DONT EVER USE THIS VARIABLE TYPE.***
`let`: These vairable types are scoped to blocks or functions. The value of this type can be changes but it cannot be re-declared.
`const`: These vairable types are scoped to blocks or functions. The values cannot be changed or re-declared


----

### Data Types

**What are they?** - *Data types are the most fundamental aspect of any programming language.* 

Think about it like this a mathmatician must first understand the numbers before the equation. Data types give meaning to our data.

----

### Data types

- Numbers
- Strings
- Null
- Boolean
- Undefined
- Objects: (Functions && Classes, Arrays, Dates, Regex, Error)

----

### Control Flow

WOAH!!! LETS NOT GET AHEAD OF OURSELVES...