A framework in programming is a tool that provides ready-made components or solutions that are customised in order to speed up development.
Front-end frameworks (client-side frameworks) provide basic templates and components of HTML, CSS, and JavaScript for building the front-end of a website or web app.
EG: Angular JS, BootStrap, React JS
Backend frameworks (server-side frameworks) programming languages that help build the backend structure of a website.
EG: Django, Express JS, Flask
Bootstrap helps us quickly create nice looking, responsive modern websites so we don't have to write as much CSS as we might.
So to get more specific, it really consists of two main things.
COMPONENTS - Buttons, Navbars
GRID SYSTEM - Bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive.
JavaScript is the Programming Language for the Web.
JavaScript can update and change both HTML and CSS.
JavaScript can calculate, manipulate and validate data.
Number, String, Null, Boolean, Undefined
Conceptually, undefined indicates the absence of a value, while null indicates the absence of an object
JavaScript variables are containers for storing data values. You could change the value of a variable
In this example, x, y, and z, are variables:
var x = 5;
var y = 6;
var z = x + y;
var carname = "Volvo XC60"
let age = 17;
let text = (age < 18) ? "Too young":"Old enough";
text + " to vote.";
Objects are variables too. But objects can contain many values.
Object values are written as name : value pairs (name and value separated by a colon).
var car = {type:"Fiat", model:"500", color:"white"};
"The car type is " + car.type;
JavaScript arrays are used to store multiple values in a single variable.
var cars = ["Saab", "Volvo", "BMW"];
cars;
You should use objects when you want the element names to be strings (text). You should use arrays when you want the element names to be numbers.Objects will be used when we need fast access, insertion and removal of an element as objects are comparatively much faster than the arrays in case of insertion and removal.
A JavaScript function is a block of code designed to perform a particular task.
A JavaScript function is executed when "something" invokes it (calls it).
User Defined Functions
Something that we define,
function myFunction(p1, p2) {
return p1 * p2;
}
myFunction(4,5)4;
Built In Function
WHAT CAN JAVASCRIPT DO?
JavaScript Can Change HTML Content
JavaScript Can Change HTML Attribute Values
JavaScript Can Change HTML Styles (CSS)
JavaScript Can Hide HTML Elements
JavaScript Can Show HTML Elements