From 9b5e129c2b189e56c513f5cc08eab4107e19a2de Mon Sep 17 00:00:00 2001 From: anildalar Date: Fri, 1 Oct 2021 09:52:23 +0530 Subject: [PATCH 1/4] operators,precedence,associativity --- Instructions.txt | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 48 ++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 Instructions.txt diff --git a/Instructions.txt b/Instructions.txt new file mode 100644 index 0000000..19ef7b5 --- /dev/null +++ b/Instructions.txt @@ -0,0 +1,72 @@ +How to work in git branch + +git branch + + +1. Create the branch + +2. Switch to the branch + + +git checkout -b <new-branch> + +master -> newbranch + +git checkout -b 1oct2021 + +document. + +. = member selection operator + +object.member +document.getElementByID() + + +Arithmetic operators ++ = addition +- = substraction +/ +* += Assignment Operator + + +String Value +"" = Double Qoute +'' = Single Qoute +document.getElementById('root').innerHTML = 'Good Morning'; + +Associativity + Left = Right + Left <- Right + + +If you want to create a variable + +var ; +var x; +var y; +var var; + +Variables are stored in Memory (RAM Radom Access Memory) + +16 GB - 8 byte x,y (4+4) + +WHo is the best Software Engineer? +The Software Engineer who will utilize the best system resources + + + +Bodmass Rule Human (General Math) = Prescedence of Operator (Computer) + + z = x + y; //Expression(Programming) = Equation(Math) + +x and y are operands + +operand + operands + ++ having higer priority (Prescedence) += have log priority + + +Tell me how many operator you can see? +2 Operator = + \ No newline at end of file diff --git a/index.html b/index.html index e69de29..c048b6f 100644 --- a/index.html +++ b/index.html @@ -0,0 +1,48 @@ + + + + + + + Document + + + + +
OKLABS
+ + + + \ No newline at end of file From 4a20ed25ef6e336f8bd2ef1f0e5ad2fc3463114c Mon Sep 17 00:00:00 2001 From: anildalar Date: Sat, 2 Oct 2021 09:52:13 +0530 Subject: [PATCH 2/4] functions --- 2oct2021.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++ Instructions2.txt | 1 + 2 files changed, 54 insertions(+) create mode 100644 2oct2021.html create mode 100644 Instructions2.txt diff --git a/2oct2021.html b/2oct2021.html new file mode 100644 index 0000000..8ee59e1 --- /dev/null +++ b/2oct2021.html @@ -0,0 +1,53 @@ + + + + + + + Document + + + + + + + + \ No newline at end of file diff --git a/Instructions2.txt b/Instructions2.txt new file mode 100644 index 0000000..a1a6eec --- /dev/null +++ b/Instructions2.txt @@ -0,0 +1 @@ +ECMA = European Computer Manufacturers Association \ No newline at end of file From c7ec8e46b3bb74b60cf26f8ef158d8027bba7744 Mon Sep 17 00:00:00 2001 From: anildalar Date: Sat, 2 Oct 2021 10:11:36 +0530 Subject: [PATCH 3/4] new --- Instructions2.txt | 53 ++++++++++++++++++++++++++++++++++++++++++++++- index.html | 15 ++++++++++---- 2 files changed, 63 insertions(+), 5 deletions(-) diff --git a/Instructions2.txt b/Instructions2.txt index a1a6eec..300bbd5 100644 --- a/Instructions2.txt +++ b/Instructions2.txt @@ -1 +1,52 @@ -ECMA = European Computer Manufacturers Association \ No newline at end of file +ECMA = European Computer Manufacturers Association + +Interview Question? + +What is the official name of Javascirpt + +Ans : ECMAScript = ES + +Note:- + +Code is executed from Top To Bottom Line by Line + +What are functions? + +Functions are resusable block of code + +We are repeating the code + + +function name(parameter1, parameter2, parameter3) { + // code to be executed +} + +DRY Principle += Dont Repeat Yourself + +Assignment +1. Create a function for subraction,division,multiplication,Addition? + +2. Create a function which accept your first and last name +and give a console log "Hello Anil Dollor How are you" + + +3. Create functions form A to Z? +ex +//1. Function Defination is one time process + +//camelCase +function myFunctionA(){ +} + +//2 Function Calling is many time process + +function myFunctionB(){ +} +function anilDollor(){ +} + +x('Anil',"Dolor") + + + diff --git a/index.html b/index.html index c048b6f..81b1650 100644 --- a/index.html +++ b/index.html @@ -29,18 +29,25 @@ //var boolean; // x = 30; // Initialization + //x=40; + // Single LIne Comments let z; // varible Decleration z = x + y; // When you have more than one operator in a line - + z = x - y; + console.log(z ); //object.member - console.log(z); + // console.log(z); + + + + - const a = 50; //initializtion and deceleration + //const a = 50; //initializtion and deceleration - console.log(z+a); + //console.log(z+a); //console.log(x+y); // single line comment From cce7262d0ddd9948c76f445416f661b52acd9080 Mon Sep 17 00:00:00 2001 From: anildalar Date: Mon, 4 Oct 2021 09:13:15 +0530 Subject: [PATCH 4/4] 4oct2021 --- 4oct2021.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 4oct2021.html diff --git a/4oct2021.html b/4oct2021.html new file mode 100644 index 0000000..c55336d --- /dev/null +++ b/4oct2021.html @@ -0,0 +1,12 @@ + + + + + + + Document + + + + + \ No newline at end of file