114 JavaFullStack 20 Jan 2025 7amTo9am JavaScript Introduction+Variables
114 JavaFullStack 20 Jan 2025 7amTo9am JavaScript Introduction+Variables
------------------------------------------
1. REST API
2. REST API APplication
3. monolithic application
4. microservicess
5. spring cloud environment
7 components
a) service Registry / service configuration ---> Eureka Cloud Server
b) service disccovery -->
c) circuit Breakers (Resoulance 4j/ Hystrix)
d) API gate Way --> Spring-cloud-api-gateway
microservices communication purpose we used --> RestTemplate---> fiegnclient
e) messaging/ routings : robit MQ/ kafka
f) Load Balancing : zipkin tool
g) CI pipelines : zenkins + Junit
===============================================================
JavaScript
---------------
HTML : the use of HTML is design web pages
CSS: The use of CSS is styling web pages
JavaScript: validation+functinality of web pages
-----------------------------------------------------------------------------------
-------------------
Java Script
----------------
--> Java Script is a object -based and Object-oriented Prgraming Language.
--> The use of Java Script is provide functinality to the web pages and provide
validation to the
web forms.
--> By using JavaScript we can create a Dynamic web Pages. so that web page having
a user interface.
============================================================================
JavaScript Topics
=================
1. Variables : var, let and const
2. operators:
3. constrol statements:
4. javaScript functions: ( 1. by using function keyword + 2. arrow function)
5. Arrays: [10,20,30] (List)
6. JSON Object
-----------------------------------------------------------
ES-6 Features
-----------------
1. let var key words
2. arrow functions
3. spread Operators (rest Operator)
4. destructring
5. class and Object (constrctor() super())
6. dafult arguments
7. forEach(), forOf(), forIn()..etc
========================================
2. JavaScript Proramming Structure
==================================
--> Java Script code write with in the HTML program by using <script> Tag.
--> This <script> tag place in 2 ways a) with in the header Tag.
b) between the <body> Tag.
--> 3 way is external javaScript file( filename.js) extention.
syntax
--------
<html>
<head>
<script>
//Java Script Code
</script>
</head>
<body>
<script>
//Java Script Code
</script>
</body>
</html>
=============================================================
output statement
--------------------------
--> The use of out put statements are print out put in web page
a) window.alert()
b) console.log()
c) document.write()
-----------------------------------------------------------------------------------
-----
exp1:
--------
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<script>
console.log("Hi JavaScript");
console.log("Hi JavaScript");
window.alert("Welcome To JavaScript");
document.write("WELCOME TO JAVASCRIPT CODE");
</script>
</body>
</html>
===============================================
2. JavaScript Variables
======================
--> Variables are name of the memory location.
--> The use of variables are to hold the values in our program.(Data)
Data: number, decimal number ,character, string. and collection of data also.
--> in java Script variables are declare with 3 keyword var,let, const keyword.
</script>
</body>
==========================================================
ex: 5 + 6 = 11
Here 5, 6 are operands and + is a operator
===================================================
WAJP for simple Interest (si=(price*time*rate)/100;)
-----------------------------------------------------------------------------
Control Statement
=================
Control Statements
----------------------------
Control Statement in JavaScript are used to control the flow of program
execution based on specific condition or repeated operations. They are enable
descion-making ,lopping and Branching in a Program. its is called Conrol statement.
================================================================
Note: the above function won't execute it self, we need to call the function by
using function name
i.e called calling function.
==============================================================
Syntax for calling function preparation
-------------------------------------------------------
<function_name>(val1,val2......val_n);
<function_name>();
let objname=<function_name>(val1,val2......val_n);
let objname=<function_name>();
========================================
ex:
----
<html>
<head>
</head>
<body>
<script>
function addition(n3) // called function
{
let n1=10;
let n2=40;
let add=n1+n2+n3;
document.write("Addition od two numbers="+add+"<br>");
}
addition(50); // calling function
addition(30); // calling function
</script>
</body>
</html>
================================================