Kodegems
Kodegems is a place where you will find a number of tutorials regarding HTML - CSS - WordPress.
technical definition from Wikipedia:
JavaScript is a high level dynamic, untyped and interpreted programming language standardized in the ECMAScript language specification, that alongside HTML and CSS is one of the three core technologies of world wide web content.
01- HTML
02- CSS
03- Javascript
01- Code Editor
02- Browser with developer tool
01- Right away loading
02- Asynchronous loading
03- Deffered Loading
Rule#1
01- Case sensitive
02- Asynchronous loading
03- Deffered Loading
Rule#1
01- Case sensitive
var mehranBlue = "This car is blue";
console.log(mehranblue);
Rule#2
Use camelCase
//variable starts with lowercase letter
var mehranBlue;
//Objects and Classes Start with uppercase letters
var date = Date();
//Constants are all caps
const = CONSTANT;
Rule#3
Whitespace
//With whitespace (human readable)
var dateToday = new Date();
//With no whitespace (machine readable)
var dateToday=new Date();
Rule#4
End each statement with semicolon;
//With Semicolon
var dateToday;
dateToday = new Date();
//With no semicolon
var dateToday
dateToday=new Date()
Rule#5
Use Comments
//With Semicolon
var dateToday = new Date();
/*With no semicolon*/
var dateToday=new Date()
Simple mathematics
4 + 5 = 9
// remember case sensitive
var a;
var A;
var currentTime;
var unit_4;
var $container;
Note: You can not create a variable with number
// Practical example
var a = 4;
var b = 5;
sum = a+b;
console.log (sum);
Note: You can not create a variable with number
// These three are the same
//01
var a = 4;
var b = 5;
var sum = a+b;
//02
var a,b,sum;
a = 5;
b = 4;
sum = a+b;
//03
var a = 5; var b=4; var sum = a+b;Note: You can not create a variable with number
//Stores regular numbers and integers
var num = 1;
ver integer = 0.32659;
var negNumber = -1;
var negInteger = -3.25689//Stores strings of letters and symbols
var string = 'Strings are words and sentences';
//Always remember to start with a single quote
var escQuotes = "Quotes can also be \"escaped\".";//Stores one or other of the binary pair true/false
var theSunIsWarm = true;
var theMoonIsMadeOfCheese = false;//Stores the intentional absence of the value
//variable will be empty but not undefined
var emptyInside = null;//Placeholder when a variable is not set
var emptyInside;//basically it looks like something is equal to something
//but in javascript "=" means, you are assigning value to the variable
var a = 5;//Short hand
var a = 5;
a = a + 5;
//or
a +=5;//Shorthand
var a = 5;
a = a + 1;
//or
a++;
By Kodegems