Data type
There are several data type in programming languages
- String: for representing text
- Numbers: for representing numbers
- Boolean: for true and false
- Null: for nothing
- Undefined: for when data type isn't determaind
- Symbol
There are several data type in programming languages
Variables be defined by keywords "const", "let", "var" to store a value or values
Use the keyword ‘if’ to start a conditional statement
More stuff to do with more data.In the real world an array is like a list (shopping list)
"for" loop, it will iterate though the array and console log each item *i stands for index, which is widely used in loops. However, it could be anything you like. A "while" loop will continue to run while a condition is true
objects are containers that can store data and functions. We use Key-Value pairs to store the data
is used for coding the content of webpages. It has been around since the early 90’s. HTML is constructed using ELEMENTS
CSS ic Cascading Style Sheets
CSS ic Cascading Style Sheets. Content The content of the box, where text and images appear. Padding Clears an area around the content. The Padding is transparent Border A border that goes around the padding and content. Margin Clears and area outside the border. The Margin is transparent.
Media queries allow us to change styles depending on particular parameters like screen width or device type. Here there are media query codes.Please resize this page to see changed styles
Flexbox, or the Flexible Box Layout, is a layout model in CSS that allows you to design complex layouts with a more efficient and predictable way to distribute space and align content in a container, even when the size of your items is unknown or dynamic. It is particularly useful for creating responsive and complex layouts without relying heavily on floats or positioning.
There are two flexbox codes belong to this page and home pageCSS allows animation of HTML elements without using JavaScript or Flash! Here, There are an animation code and its output
SQL is a standard language for storing, manipulating and retrieving data in databases. For creating a table in sql we use key word "CREATE TABLE" then table name. Here there is a sample for making a table, defining fields with data type, insert data, and delete data.
Software Development Life Cycle
DOM represents a webpage as a tree like structure
In JS we can select and control elements of the currently loaded webpage
For setting key or mouse events we use "addEventListener"
We can creat complex query by joining tables together.
A javascript engine executes javascript. V8 is the name of the JavaScript engine that powers Google Chrome.
Three fundamental parts of the JavaScript engine :
We’ve all experienced it… Sometimes we have access to a variable we’ve created and sometimes we don’t ..why? Because of scope.
There are 3 types of variable scope :
Variables declared Globally (outside any function) have Global Scope. Global variables can be accessed from anywhere in a JavaScript program.
Javascript has function scope, meaning each function creates a new scope. Variables declared inside a function are not accessible from outside the function
Before ES6 (2015) Javascript only had global scope and function scope. ES6 introduced the Let and Const keywords. These two keywords provide block scope in Javascript. Variables declared inside a block cannot be accessed outside a block. Let’s compare and contrast the old keyword Var with Let in a For Loop.
Functions which accept a function as a parameter.ORFunctions which return a function.
Example One :
Example Two :
Example Three :
Example Four :
objects are containers that can store data and functions. We use Key-Value pairs to store the data.
Access data in an object
To explore what synchronous and asynchronous mean To be able to work with higher order functions and be familiar with callback functions To recognise what promises are in JavaScript To identify the async and await keywords and use them to handle data
In JavaScript, synchronous refers to our code executing one thing at a time. So our program waits until the current function has finished before moving on to the next.
Inquirer is an NPM package that provides an easy way to capture user input in your Node.js command line interface applications. It provides several methods for asking questions and returning answers from the user that can be accessed by a .then promise function.
React is The library for web and native user interfaces
npm start
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits. You will also see any lint errors in the console.
To explore lifecycle methods in both class and functional components To be familiar with ComponentDidMount, ComponentDidUpdate and ComponentWillUnmount
When fetching external data use this hook to control the lifecycle effects.