diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..6f3a291
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "liveServer.settings.port": 5501
+}
\ No newline at end of file
diff --git a/array.html b/array.html
new file mode 100644
index 0000000..490b309
--- /dev/null
+++ b/array.html
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+ ARRAY
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/arrayFunction.html b/arrayFunction.html
new file mode 100644
index 0000000..e6cfa86
--- /dev/null
+++ b/arrayFunction.html
@@ -0,0 +1,12 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
\ No newline at end of file
diff --git a/background.html b/background.html
new file mode 100644
index 0000000..85d4701
--- /dev/null
+++ b/background.html
@@ -0,0 +1,23 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/basiccal.html b/basiccal.html
new file mode 100644
index 0000000..5a119a3
--- /dev/null
+++ b/basiccal.html
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+ Basic Calculator
+
+
+
+
+
+ Basic Calculator
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bmi.html b/bmi.html
new file mode 100644
index 0000000..a9c4c92
--- /dev/null
+++ b/bmi.html
@@ -0,0 +1,45 @@
+
+
+
+
+
+ BMI
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cal.html b/cal.html
new file mode 100644
index 0000000..72587f0
--- /dev/null
+++ b/cal.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+ Ans Is:
+
+
\ No newline at end of file
diff --git a/captcha.html b/captcha.html
new file mode 100644
index 0000000..9d794cc
--- /dev/null
+++ b/captcha.html
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+ +
+
+ =
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cast.html b/cast.html
new file mode 100644
index 0000000..f06cc15
--- /dev/null
+++ b/cast.html
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/closure.html b/closure.html
new file mode 100644
index 0000000..cb4b6ce
--- /dev/null
+++ b/closure.html
@@ -0,0 +1,12 @@
+
+
+
+
+
+ Closure
+
+
+
+
+
+
\ No newline at end of file
diff --git a/css/baciccal.css b/css/baciccal.css
new file mode 100644
index 0000000..e69de29
diff --git a/css/capcta.css b/css/capcta.css
new file mode 100644
index 0000000..965abe7
--- /dev/null
+++ b/css/capcta.css
@@ -0,0 +1,20 @@
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+/*
+body {
+ background-color: cadetblue;
+ font-family: cursive;
+} */
+
+.container {
+ position: absolute;
+ margin-top: 50px;
+ padding: 20px;
+ text-align: center;
+ height: 50%;
+ width: 20%;
+ border: 2px solid green;
+}
diff --git a/css/dental.css b/css/dental.css
new file mode 100644
index 0000000..f36852e
--- /dev/null
+++ b/css/dental.css
@@ -0,0 +1,81 @@
+body {
+ background-image:url(/image/pexels-anna-shvets-3845757.jpg);
+ background-size: cover;
+ /* background-position: center center; */
+}
+
+span {
+ border-style: none;
+ font-size: 2.1rem;
+ color: rgb(0, 185, 231);
+ font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
+}
+
+.box {
+ background-image: url(/image/tooth-3296265_1280.jpg);
+ background-size: cover;
+ background-position: center center;
+ margin-top: 80px;
+ /* margin-top: 15%; */
+ border-style: none;
+ padding: 1%;
+ border-radius: 20px;
+ margin-left: 10%;
+ background-color: rgb(44, 112, 112);
+ height: 50%;
+ width: 30%;
+}
+
+h1 {
+ border-style: none;
+ text-align: center;
+}
+
+select {
+ border-style: none;
+ padding: 10px;
+ border-radius: 10px;
+ background-color: rgb(94, 255, 233);
+}
+
+table {
+ border-style: none;
+ border-radius: 10px;
+ background-color: rgb(25, 253, 215);
+ color: rgb(0, 0, 0);
+}
+
+th {
+ border-style: none;
+ color: rgb(0, 0, 0);
+ background-color: rgb(6, 182, 123);
+ padding: 10px;
+ border-radius: 10px;
+}
+
+td {
+ border-style: none;
+ color: rgb(0, 0, 0);
+ background-color: rgb(6, 182, 123);
+ padding: 10px;
+ border-radius: 10px;
+}
+
+#apt-date {
+ border-style: none;
+ color: rgb(0, 68, 255);
+ /* background-color: black; */
+}
+
+input {
+
+ border-radius: 10px;
+ padding: 5px;
+}
+
+button {
+ border-style: none;
+ border-radius: 10px;
+ padding: 10px;
+ background-color: coral;
+}
\ No newline at end of file
diff --git a/css/income.css b/css/income.css
new file mode 100644
index 0000000..2b33ce3
--- /dev/null
+++ b/css/income.css
@@ -0,0 +1,14 @@
+
+table {
+ width: 50%;
+ border: 2px solid green;
+ border-radius: 5px;
+}
+
+td {
+ width: 25%;
+ height: 25%;
+ border-radius: 5%;
+ text-align: center;
+
+}
\ No newline at end of file
diff --git a/css/intrest.css b/css/intrest.css
new file mode 100644
index 0000000..8660165
--- /dev/null
+++ b/css/intrest.css
@@ -0,0 +1,45 @@
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ background-color: rgb(36, 56, 56);
+ background-image: url(/image/top-view-desk-minimal-glasses-calculator.jpg);
+ background-size: cover;
+}
+.container {
+ padding: 2%;
+ height: 50%;
+ width: 20%;
+ background-color: rgb(51, 180, 180);
+ margin: 10%;
+ border-radius: 20px;
+}
+
+h1 {
+ font-family: monospace;
+ text-align: center;
+}
+
+.box input {
+ border-radius: 5px;
+ padding: 5px;
+ background-color: rgb(0, 209, 246);
+ border-style: none;
+}
+
+.su input {
+ font-size: small;
+ color: rgb(255, 255, 255);
+ border-radius: 5px;
+ background-color: rgb(2, 221, 101);
+}
+
+.sl select {
+ border-radius: 20px;
+ padding: 3px;
+ background-color: rgb(175, 124, 58);
+}
+
diff --git a/css/test2H.css b/css/test2H.css
new file mode 100644
index 0000000..6f12027
--- /dev/null
+++ b/css/test2H.css
@@ -0,0 +1,82 @@
+body {
+ background-image: url(/image/money-2724237_1920.jpg);
+ background-size: cover;
+
+}
+
+
+.container {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+.box {
+ background-image: url(/image/image-3033200_1280.jpg);
+ background-size: cover;
+ margin-top: 80px;
+ background-position: center center;
+ height: 50%;
+ width: 30%;
+ padding: 1%;
+ border-style: none;
+ border-radius: 20px;
+ margin-left: 10%;
+ /* background-color: rgb(25, 158, 182); */
+}
+
+#error {
+ color: red;
+}
+
+input{
+ font-family: cursive;
+ background-color: aqua;
+ padding: 1.5%;
+ border-radius: 10px;
+ border-style: none;
+ color: black;
+}
+
+span {
+ font-family: cursive;
+ font-size: large;
+ color: rgb(89, 89, 89);
+}
+
+#occupation {
+ font-family: cursive;
+ color: white;
+}
+
+select {
+ border-style: none;
+ color: rgb(0, 0, 0);
+ border-radius: 10px;
+ padding: 1%;
+ background-color: rgb(150, 150, 150);
+}
+
+#smoke p3 {
+ font-family: cursive;
+ color: rgba(255, 24, 24, 0.686);
+}
+
+#smoke p4 {
+ font-family: cursive;
+ color: rgb(83, 255, 15);
+}
+
+#submit {
+ background-color: greenyellow;
+ border-style: none;
+ padding: 1.2%;
+ border-radius: 10px;
+}
+
+#Ans {
+ background-color: rgb(97, 193, 143);
+ border-radius: 10px;
+ font-family: cursive;
+ color: white;
+}
diff --git a/dent2.html b/dent2.html
new file mode 100644
index 0000000..16def6f
--- /dev/null
+++ b/dent2.html
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+ Select Treatment:
+
+
+
+
+
+ | Treatment |
+ Seating |
+ Costing |
+
+
+ |
+ |
+ |
+
+
+
+
+
+ Select Apt Date:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dental.html b/dental.html
new file mode 100644
index 0000000..d402723
--- /dev/null
+++ b/dental.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
Dental Treatment
.
+
+
+
+
Select Treatment:
+
+
+
+
+
+
+
+ | Treatment |
+ Seating |
+ Costing |
+
+
+ |
+ |
+ |
+
+
+
+
+
+
+
Select Appointment Date
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/event.html b/event.html
new file mode 100644
index 0000000..1a2baf9
--- /dev/null
+++ b/event.html
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+ Hello MISTRY
+
+ HELLO Meet
+
+ Hello World
+
+ Satrun
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/formvalid.html b/formvalid.html
new file mode 100644
index 0000000..38c65bd
--- /dev/null
+++ b/formvalid.html
@@ -0,0 +1,69 @@
+
+
+
+
+ JavaScript Form validation
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/hoisting.html b/hoisting.html
new file mode 100644
index 0000000..4762e3b
--- /dev/null
+++ b/hoisting.html
@@ -0,0 +1,12 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
\ No newline at end of file
diff --git a/image/2009.i511.042..removal tooth flat.jpg b/image/2009.i511.042..removal tooth flat.jpg
new file mode 100644
index 0000000..265cb1b
Binary files /dev/null and b/image/2009.i511.042..removal tooth flat.jpg differ
diff --git a/image/coins-1523383_1280.jpg b/image/coins-1523383_1280.jpg
new file mode 100644
index 0000000..c53259f
Binary files /dev/null and b/image/coins-1523383_1280.jpg differ
diff --git a/image/image-3033200_1280.jpg b/image/image-3033200_1280.jpg
new file mode 100644
index 0000000..a0a30f6
Binary files /dev/null and b/image/image-3033200_1280.jpg differ
diff --git a/image/image-3033200_640.jpg b/image/image-3033200_640.jpg
new file mode 100644
index 0000000..6fb9ec8
Binary files /dev/null and b/image/image-3033200_640.jpg differ
diff --git a/image/marco-antonio-casique-reyes-Her6V3kRZf8-unsplash.jpg b/image/marco-antonio-casique-reyes-Her6V3kRZf8-unsplash.jpg
new file mode 100644
index 0000000..b268caa
Binary files /dev/null and b/image/marco-antonio-casique-reyes-Her6V3kRZf8-unsplash.jpg differ
diff --git a/image/money-2724237_1920.jpg b/image/money-2724237_1920.jpg
new file mode 100644
index 0000000..f1e63a9
Binary files /dev/null and b/image/money-2724237_1920.jpg differ
diff --git a/image/money-2724241_1280.jpg b/image/money-2724241_1280.jpg
new file mode 100644
index 0000000..35d5b11
Binary files /dev/null and b/image/money-2724241_1280.jpg differ
diff --git a/image/pexels-anna-shvets-3845553.jpg b/image/pexels-anna-shvets-3845553.jpg
new file mode 100644
index 0000000..a22b7f9
Binary files /dev/null and b/image/pexels-anna-shvets-3845553.jpg differ
diff --git a/image/pexels-anna-shvets-3845757.jpg b/image/pexels-anna-shvets-3845757.jpg
new file mode 100644
index 0000000..cd6989d
Binary files /dev/null and b/image/pexels-anna-shvets-3845757.jpg differ
diff --git a/image/student-849822_1920.jpg b/image/student-849822_1920.jpg
new file mode 100644
index 0000000..a98aaae
Binary files /dev/null and b/image/student-849822_1920.jpg differ
diff --git a/image/teamwork-3213924_1920.jpg b/image/teamwork-3213924_1920.jpg
new file mode 100644
index 0000000..5889cbe
Binary files /dev/null and b/image/teamwork-3213924_1920.jpg differ
diff --git a/image/tooth-3296265_1280.jpg b/image/tooth-3296265_1280.jpg
new file mode 100644
index 0000000..18b6fd2
Binary files /dev/null and b/image/tooth-3296265_1280.jpg differ
diff --git a/image/top-view-desk-minimal-glasses-calculator.jpg b/image/top-view-desk-minimal-glasses-calculator.jpg
new file mode 100644
index 0000000..597453e
Binary files /dev/null and b/image/top-view-desk-minimal-glasses-calculator.jpg differ
diff --git a/income.html b/income.html
new file mode 100644
index 0000000..a764256
--- /dev/null
+++ b/income.html
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+ | Income Tax Slab |
+ Income Tax Rate |
+ Actua Tax |
+
+
+
+ | Up to 3 Lakh |
+ Nill |
+ |
+
+
+ | 3 Lakh to 6 Lakh |
+ 5% |
+ |
+
+
+ | 6 Lakh to 9 Lakh |
+ 10% |
+ |
+
+
+ | 3 Lakh to 12 Lakh |
+ 15% |
+ |
+
+
+ | 12 Lakh to 15 Lakh |
+ 20% |
+ |
+
+
+ | Above 15 Lakh |
+ 30% |
+ |
+
+
+Total Tax:
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/intrest.html b/intrest.html
new file mode 100644
index 0000000..3805d33
--- /dev/null
+++ b/intrest.html
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+ Intrest
+
+
+
+
+
+
Intrest Calculater
+
+
+
+
+
Intrest Is:
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/js/array.js b/js/array.js
new file mode 100644
index 0000000..ef08480
--- /dev/null
+++ b/js/array.js
@@ -0,0 +1,501 @@
+// 1. Creating an Array
+
+// const cars = ["alto", "funty", "van"];
+
+// console.log(cars[1]);
+
+
+
+
+
+// 2. Change Index
+
+// const cars = ["alto", "funty", "van"];
+
+// console.log(cars[1] = "BMW");
+// console.log(cars);
+
+
+
+
+// 3. Full Array
+
+// const bikes = ["Splender","BMW","Shine"];
+
+// console.log(bikes);
+
+
+
+// 4. Converting an Array to a String
+
+// const food = ["Pizza","Noodels","Idli","Coco"];
+
+// console.log(food.toString());
+
+
+
+// 5. Arrays are Objects
+
+// const person = {firstName:"John", lastName:"Doe", age:46};
+
+// console.log(person);
+
+
+// // Initializing while declaring
+// let arr1 = new Array(3)
+// arr1[0] = 10
+// arr1[1] = 20
+// arr1[2] = 30
+// console.log("Array 1: ", arr1)
+
+// // Creates an array having elements 10, 20, 30, 40, 50
+// let arr2 = new Array(10, 20, 30, 40, 50);
+// console.log("Array 2: ", arr2)
+
+// // Creates an array of 5 undefined elements
+// let arr3 = new Array(5);
+// console.log("Array 3: ", arr3)
+
+// // Creates an array with one element
+// let arr4 = new Array("1BHK");
+// console.log("Array 4: ", arr4)
+
+
+
+// cahnge
+
+// const courses = ["HTML", "CSS", "Javascript"];
+// console.log(courses[0])
+// console.log(courses[1] = "React")
+// console.log(courses[2])
+
+
+// length array Increasing/Decreasing
+
+// const courses = ["HTML", "CSS", "Javascript", "React"];
+
+
+// courses.length = 8
+// console.log("Array after increased length: " ,courses)
+
+
+// courses.length = 2
+// console.log("Array after decreased length: " ,courses)
+
+
+
+
+// We can also update an array after initialization.
+
+// const courses = ["HTML", "CSS", "Javascript"];
+// courses.length = 5 // Increasing array length to 5
+// console.log("Array after increased length: " ,courses)
+
+// courses[3] = 'PhP'
+// courses[4] = 'React'
+// console.log("Array after initializing: ", courses)
+
+// const courses = ["css", "html", "JavaScript","React"]
+// courses.splice(1 , 1 )
+// console.log(courses);
+
+
+
+// let data = [ 30, 5, 'MISTRY', 80, 60, 'Surti', 50 ];
+
+// let data1 = [88,188];
+
+// console.log(typeof data);
+// console.log(data[5]);
+
+// intration
+
+
+// 1.
+
+// for (let i = 0; i {
+// console.log(index + '--' + value);
+// });
+
+
+// 3.
+
+// data.map((value,index) => {
+// console.log(index + '--' + value);
+// })
+
+
+// 4.
+
+// data.map((v,i) => console.log(i + '--' + v))
+
+
+
+
+
+
+
+
+// --Update--
+
+// 1.
+
+// data[3] = 50
+// console.log(data);
+
+
+
+
+
+
+// --Add--
+
+// 1.
+
+// data.push(100);
+// console.log(data);
+
+
+// 2.
+
+// data.unshift(100);
+// console.log(data);
+
+
+// 3.
+
+// data.splice(5,0,87)
+// console.log(data);
+
+
+
+
+// --Remove--
+
+// 1.
+
+// data.pop()
+// console.log(data);
+
+// 2.
+
+// data.shift()
+// console.log(data);
+
+// 3.
+
+// data.splice(2,3)
+// console.log(data);
+
+
+// -------------
+
+// let data = [ 30, 5, 'MISTRY', 80, 60, 'Surti', 50 ];
+
+// let data1 = [88,188];
+
+// -------------
+
+// --Array's Function's--
+
+
+// 1.
+
+// let ans = Array.isArray(data);
+// console.log(ans);
+
+
+// 2.
+
+// let ans = data.concat(data1)
+// console.log(ans);
+
+
+// 3.
+
+// let ans = data.some((v) => v > 50);
+// console.log(ans);
+
+
+// 4.
+
+// let ans = data.find((v) => v > 20);
+// console.log(ans);
+
+
+// 5.
+
+// let fullname = "MEET NILESHBHAI MISTRY";
+// let ans = fullname.split(" ");
+// console.log(ans);
+
+
+// 6.
+
+// let ans = data.slice(2,4 );
+// console.log(ans);
+
+
+
+// -------TASK-------
+// ------------------
+
+// 1. filter()
+
+// const Age = [25, 64, 16, 15, 34];
+
+// const res = Age.filter(checkAdult);
+
+// function checkAdult(age) {
+// return age >= 18;
+// }
+
+// console.log(res);
+
+
+
+// 2. reduse()
+
+// let arr = [200, 50, 25];
+
+// function task(total, num) {
+// return total - num;
+// }
+
+// function callTask(item) {
+
+// console.log(arr.reduce(task));
+// }
+// callTask() //Ans: 125
+
+
+// or
+
+
+
+// let arr1 = [ 10,20,30,40,90,100];
+
+// function task(sum,num) {
+// return sum + num;
+// }
+
+// function callTask() {
+// console.log(arr1.reduce(task));
+// }
+
+// callTask() //Ans: 290
+
+
+
+
+
+
+
+// 3. indexOf()
+
+
+// function task() {
+
+
+// let indexTask = 'Mistry Meet';
+
+
+// let index = indexTask.indexOf('y Meet');
+// console.log(index);
+// }
+
+// task(); //Ans: 5
+
+
+
+
+
+
+// 4. lastindexOf
+
+// function task() {
+// let lindexOf = 'mistrymeetteem';
+// let index = lindexOf.lastIndexOf('rymeet');
+// console.log(index);
+// }
+// task();
+
+
+
+
+// Array task
+
+
+
+// let data = [ 10, 8, 50, 'meet', 40, 80, 90 ];
+
+// let data1 = [55, 8, 9, 877, 56, 99, 140];
+
+// let data2 = ['Mistry','Meet','Surati','Gujarati'];
+
+
+// 1. map
+// let ans = data.map((v,i) => {
+// if ( v > 15 ) {
+// return v;
+// } else {
+// return 0;
+// }
+// })
+
+// console.log(ans);
+
+
+// 2.filter
+
+// let ans = data.filter((v,i) => v > 15 && v < 90)
+// console.log(ans);
+
+// 3. reduse
+
+// let ans = data1.reduce((acc,v,i) => acc + v,0)
+// console.log(ans);
+
+// 4. reverse
+
+// let ans = data.reverse()
+// console.log(ans);
+
+
+
+
+// 5. sort
+
+// 1
+// let ans = data2.sort()
+// console.log(ans); //asc
+
+// 2
+// let ans = data1.sort((a,b) => a - b)
+// console.log(ans);
+
+// 3
+// let ans = data1.sort((a,b) => b - a)
+// console.log(ans);
+
+
+
+
+// 6.fill
+
+// let ans = data.fill(10000,2,5)
+// console.log(ans);
+
+
+// 7.findIndex
+
+// let ans = data1.findIndex((v) => v === 56)
+// console.log(ans);
+
+
+// let data = [ 10, 8, 50, 'meet', 40, 80, 90, 'meet' ];
+
+// let data1 = [55, 8, 9, 877, 56, 99, 140];
+
+// let data2 = ['Mistry','Meet','Surati','Gujarati'];
+
+
+// //8.includes
+
+// // let ans = data1.includes(55)
+// // console.log(ans);
+
+// //9.every
+
+// // let ans = data1.every((v) => v > 0)
+// // console.log(ans);
+
+
+// //10. indexOf
+
+// // let ans = data.indexOf("meet")
+// // console.log(ans);
+
+
+// let ans = data.lastIndexOfayyays("meet")
+// console.log(ans);
+
+
+
+
+
+// -----arrays task---------
+// -------------------------
+
+
+
+// let data = [20, 49, 10, 'meet', 58, 79];
+
+// let data1 = [39, 58, 88, 19, 95, 68]
+
+// let data2 = ['surat','mumbai','panjab','tamilnadu']
+
+// // 1. Finding the maximum element in an array.
+
+// let ans = data.filter((v, i) => v > 40)
+// console.log(ans);
+
+// or
+
+// let ans1 = data.filter((v, i) => {
+// if (v > 15) {
+// console.log(v);
+// }
+// })
+
+
+
+
+// 2. Finding the minimum element in an array.
+
+
+// let ans = data.filter((v, i) => v < 50)
+// console.log(ans);
+
+
+// or
+
+
+// let ans1 = data.filter((v, i) => {
+// if (v < 15) {
+// console.log(v);
+// }
+// })
+
+
+
+// 3. Sorting an array in ascending order
+
+// let ans = data2.sort()
+// console.log(ans);
+
+// or
+
+// let ans = data2.sort((v,i) => v - i )
+// console.log(ans);
+
+
+
+
+
+// 4. Sorting an array in descending order.
+
+// let ans = data1.sort((v,i) => i - v)
+// console.log(ans);
+
+// or
+
+// let ans = data.sort()
+// console.log(ans);
\ No newline at end of file
diff --git a/js/arrayFunction.js b/js/arrayFunction.js
new file mode 100644
index 0000000..8931e72
--- /dev/null
+++ b/js/arrayFunction.js
@@ -0,0 +1,181 @@
+// let array1 = [15, 84, 65, 22, 45, 170, 54]
+
+//1.
+
+// const maxArr = (array1) => {
+// let max = array1[0]
+
+// for (let i=1; i max) {
+// max = array1[i]
+// }
+// }
+// console.log(max);
+// }
+// maxArr(array1)
+
+
+
+//2.
+
+// const maxArr = (array1) => {
+// let max = array1[0]
+
+// for (let i=1; i {
+// let = newArr =[]
+// for (let i=array1.length-1; i>=0; i--) {
+// newArr.push(array1[i]);
+// }
+// console.log(newArr);
+// }
+
+// ReversArr(array1)
+
+//6. Finding the sum of all elements in an array.
+
+// const SumArr = () => {
+// sum = 0
+// for (let i=0; i {
+// sum = 0
+// for (let i=0; i {
+// let temp;
+// for (let i=0; i {
+// let uniqeArr = []
+
+// arr.map((v) => {
+// if (!uniqeArr === v) {
+// newArr.push(v)
+// }
+// })
+// console.log(uniqeArr);
+// }
+
+// dupliArr(arr2)
+
+
+
+
+
+
+//10. Merging two arrays into a new array.
+
+// const mergeArr = (arr1,arr2) => {
+// let newArr = []
+
+// for (let i=0; i {
+
+
+// }
+// splitArr(arr1, aar2)
+
+//13. Rotating an array by a given number of positions.
+
+// const rotatingArr = (arr,n) => {
+// for (let i=0; i {
+
+// let ans = arr.sort((a,b) => b-a)
+// console.log(ans[1]);
+// }
+
+// seclargArr(arr1)
+
+// 15. Finding the k-th smallest element in an array.
+
+// const ksmallArr = (arr, elem) => {
+// let ans = arr.sort((a, b) =>a - b)
+// console.log(ans[elem - 1]);
+// }
+// ksmallArr(arr1, 2)
+
diff --git a/js/background.js b/js/background.js
new file mode 100644
index 0000000..ccd413d
--- /dev/null
+++ b/js/background.js
@@ -0,0 +1,24 @@
+function handlChange() {
+ // console.log("ok");
+
+ let countryName = document.getElementById("country").value
+
+ // console.log(countryName);
+
+ if (countryName === 'in') {
+ // console.log("India");
+ document.getElementById("body").style.backgroundColor = 'orange'
+
+ } else if (countryName === 'uk') {
+ // console.log("United Kingdom");
+ document.getElementById("body").style.backgroundColor = 'red'
+
+ } else if (countryName === 'us') {
+ // console.log("Unaites State Of America");
+ document.getElementById("body").style.backgroundColor = 'blue'
+
+ } else {
+ // console.log("Please Select");
+ document.getElementById("body").style.backgroundColor = 'white'
+ }
+}
\ No newline at end of file
diff --git a/js/basiccal.js b/js/basiccal.js
new file mode 100644
index 0000000..4bde6b0
--- /dev/null
+++ b/js/basiccal.js
@@ -0,0 +1,31 @@
+function insert(val) {
+ console.log(val);
+
+ document.form1.textview.value = document.form1.textview.value + val
+
+}
+
+function equal() {
+
+ let ans = document.form1.textview.value;
+ // console.log(ans);
+
+ let exp = eval(ans);
+
+ document.form1.textview.value = exp;
+
+ // console.log(exp);
+}
+
+function hadlClear() {
+
+ document.form1.textview.value = ' '
+
+}
+
+function backspace() {
+ let exp = document.form1.textview.value;
+
+ document.form1.textview.value = exp.substring(0,exp.length - 1);
+
+}
diff --git a/js/bmi.js b/js/bmi.js
new file mode 100644
index 0000000..47b0fe5
--- /dev/null
+++ b/js/bmi.js
@@ -0,0 +1,59 @@
+function humenbmi() {
+
+ event.preventDefault();
+
+ let w = parseFloat(document.getElementById("weghit").value);
+ let h = parseFloat(document.getElementById("heghit").value);
+
+ let cm = h / 100;
+
+ let bmical = w / (cm * cm);
+ let anser = bmical;
+
+ let heightE = true;
+ let weghitE = true;
+
+
+
+ if (w > 0 && w < 450) {
+ document.getElementById("weghitErr").innerHTML = ""
+ weghitE = false
+ } else {
+ document.getElementById("weghitErr").innerHTML = "Please enter weghit and checked input"
+ }
+
+ if (h > 30 && h < 300) {
+ document.getElementById("HeightError").innerHTML = ""
+ heightE = false
+ } else {
+ document.getElementById("HeightError").innerHTML = "please enter height and input checked"
+ }
+
+
+ if (anser) {
+ document.getElementById("bmianser").innerHTML = anser;
+ } else {
+ document.getElementById("bmianser").innerHTML = '';
+
+ }
+
+ // console.log(Math.floor(anser));
+
+
+ if (weghitE || heightE) {
+ return false
+ } else {
+ if (anser > 17 && anser < 18.5) {
+ document.getElementById("anser").innerHTML = 'bade';
+ } else if (anser > 18.5 && anser < 25) {
+ document.getElementById("anser").innerHTML = 'normal';
+ } else if (anser > 25 && anser < 30) {
+ document.getElementById("anser").innerHTML = 'overweghit';
+ } else {
+ document.getElementById("anser").innerHTML = 'sever';
+ }
+ return true
+ }
+
+ // return false
+}
\ No newline at end of file
diff --git a/js/cal.js b/js/cal.js
new file mode 100644
index 0000000..e1b3b5c
--- /dev/null
+++ b/js/cal.js
@@ -0,0 +1,46 @@
+// let x = parseInt(prompt("Enter Value Of X : "));
+// let y = parseInt(prompt("Enter Value Of Y : "));
+
+// let op = prompt("ENTER OPERATOR");
+// // console.log(x,y,op);
+
+// let ans;
+
+// switch (op) {
+// case '+':
+// ans = x + y;
+// break;
+
+// case '-':
+// ans = x - y;
+// break
+
+// case '*':
+// ans = x * y;
+// break
+
+// case '/':
+// ans = x / y;
+// break
+// }
+
+// console.log(ans);
+
+function handelsubmit() {
+ // console.log("ok");
+ let r = parseFloat(document.getElementById("radius").value);
+
+ let area;
+
+ if (r === '') {
+ document.getElementById("radius").innerHTML = "Please Enter Value"
+ } else {
+ document.getElementById("radius").innerHTML = ""
+ }
+
+ area = 3.14 * r * r;
+
+ console.log("Area Of circle is: ",area);
+
+}
+
diff --git a/js/capcha.js b/js/capcha.js
new file mode 100644
index 0000000..a988249
--- /dev/null
+++ b/js/capcha.js
@@ -0,0 +1,38 @@
+let n1 = Math.floor(Math.random() * 100);
+let n2 = Math.floor(Math.random() * 10);
+
+document.getElementById("num1").innerHTML = n1;
+document.getElementById("num2").innerHTML = n2;
+
+let correctAns = n1 + n2;
+
+let AnsE = true
+
+// console.log(n1, n2, correctAns);
+
+function handlSubmit() {
+ // console.log("ok");
+
+ let userAns = parseInt(document.getElementById("ans").value);
+
+ if (userAns) {
+ // console.log("y");
+ if (correctAns == userAns) {
+ alert("correct Ans")
+ } else {
+ alert("Invalid Ans. Correct Ans Is:" + correctAns);
+ }
+ } else {
+ document.getElementById("ansErr").innerHTML = "Please Enter Ans"
+ }
+
+
+
+
+ // if (correctAns == userAns) {
+ // alert("correct Ans")
+ // } else {
+ // alert("Invalid Ans. Correct Ans Is:" + correctAns);
+ // }
+
+}
\ No newline at end of file
diff --git a/js/cast.js b/js/cast.js
new file mode 100644
index 0000000..3e42024
--- /dev/null
+++ b/js/cast.js
@@ -0,0 +1,43 @@
+function handelSubmit() {
+ // console.log("hello");
+
+ let cast = document.getElementById("cast").value;
+ console.log("CAST:",cast);
+
+ let CGPA = document.getElementById("CGPA").value;
+
+ console.log("CGPA",CGPA);
+
+ let fees = document.getElementById("fees").value;
+ // console.log(fees);
+
+ let grad
+
+ if (CGPA > 9 && CGPA <= 100) {
+ grad = "A";
+ } else if (CGPA >= 8.5) {
+ grad = "B";
+ } else if (CGPA >= 8) {
+ grad = "C";
+ } else if (CGPA >= 7.5) {
+ grad = "D";
+ }
+
+ console.log("Grad: ",grad);
+
+ let scoler
+
+ if (grad == "A" || grad == "B") {
+ if (cast == 'o' ) {
+ scoler = fees * 0;
+ } else if (cast == 'ob' ){
+ scoler = fees *25;
+ } else if (cast == 'sc' ) {
+ scoler = fees * 50;
+ } else if (cast == 'st' ) {
+ scoler = fees * 100;
+ }
+ }
+
+ console.log("scolarship is : ",scoler);
+}
\ No newline at end of file
diff --git a/js/closure.js b/js/closure.js
new file mode 100644
index 0000000..57610d3
--- /dev/null
+++ b/js/closure.js
@@ -0,0 +1,52 @@
+// let age = 21;
+
+
+// //Outer Function
+// const persnolInfo = (name) => {
+// let edu = 'full Stack Devloper' //Outer Function's Variable
+
+// //Inner Function
+// return allInfo = (salary) => {
+// console.log(age); //
+// console.log(name);
+// console.log(edu);
+
+// console.log(salary);
+// }
+// }
+
+// let res = persnolInfo('Meet');
+
+// console.log(res);
+
+// res(20000);
+
+// res(30000);
+
+// const incrimentCounter = () => {
+// let count = 0;
+
+// return () => {
+// count = count + 1;
+// console.log(count);
+// }
+// }
+
+// let res = incrimentCounter()
+// console.log(res);
+
+// res();
+// res();
+// res();
+// res();
+// res();
+
+
+// let res1 = incrimentCounter()
+// console.log(res1);
+
+// res1();
+// res1();
+// res1();
+// res1();
+// res1();
\ No newline at end of file
diff --git a/js/dent2.js b/js/dent2.js
new file mode 100644
index 0000000..468e6db
--- /dev/null
+++ b/js/dent2.js
@@ -0,0 +1,79 @@
+let tc_s=1, tc_c=500;
+let fl_s=2, fl_c=1500;
+let rct_s=4, rct_c=2500;
+let rct_c_s=6, rct_c_c=12000;
+let br_s=12, br_c=35000;
+
+let final_se, final_co, final_tr;
+
+const displayTreatment = (t, s, c) => {
+ document.getElementById("tre").innerHTML = t;
+ document.getElementById("seating").innerHTML = s;
+ document.getElementById("costing").innerHTML = c;
+
+ final_se=s;
+ final_co=c;
+ final_tr=t;
+}
+
+const handleTreatment = () => {
+ let val = document.getElementById("treatment").value;
+
+ if (val === 'tc') {
+ displayTreatment("Teeth Cleaning", tc_s, tc_c);
+ } else if (val === 'fl') {
+ displayTreatment("Filling", fl_s, fl_c);
+ } else if (val === 'rct') {
+ displayTreatment("Root Canal Treatment", rct_s, rct_c);
+ } else if (val === 'rct_cover') {
+ displayTreatment("RCT + Cover", rct_c_s, rct_c_c);
+ } else if (val === 'br') {
+ displayTreatment("Braces", br_s, br_c);
+ }
+
+ document.getElementById("disp").style.display = 'block';
+}
+
+const appDate = () => {
+ let d = document.getElementById("apt-date").value;
+
+ let per_co = final_co / final_se;
+
+ let dateAp = new Date(d);
+
+ let print = '';
+
+ print += '| Treatment | Seating | Costing |
';
+
+ for (let i=1; i<=final_se; i++) {
+ if (i === 1) {
+ print += '';
+ print += '| ' + i + ' | ';
+ print += '' + dateAp.toLocaleDateString() + ' | ';
+ print += '' + per_co + ' | ';
+ print += '
';
+ // console.log(i, per_co, dateAp.toLocaleDateString());
+ } else {
+ dateAp.setDate(dateAp.getDate() + 7);
+ print += '';
+ print += '| ' + i + ' | ';
+ print += '' + dateAp.toLocaleDateString() + ' | ';
+ print += '' + per_co + ' | ';
+ print += '
';
+ // console.log(i, per_co, dateAp.toLocaleDateString());
+ }
+ }
+
+
+ print += '
';
+
+ document.getElementById("tr-plan").innerHTML = print;
+
+ console.log(print);
+
+ document.getElementById("tr-plan").style.display = 'block';
+}
+
+let bookRef = document.getElementById("book");
+
+bookRef.addEventListener("click", appDate)
\ No newline at end of file
diff --git a/js/dental.js b/js/dental.js
new file mode 100644
index 0000000..4a6eaf7
--- /dev/null
+++ b/js/dental.js
@@ -0,0 +1,104 @@
+// function handlTreatment() {
+// console.log("ok");
+// }
+
+const TC_s = 1, TC_c = 500;
+const F_s = 2, F_c = 1500;
+const RCT_s = 4, RCT_c = 2500;
+const RCT_C_s = 6, RCT_C_c = 12000;
+const BI_s = 12, BI_c = 35000;
+
+let tr_name, tr_s = 0, tr_c = 0;
+
+
+
+const handlTreatment = () => {
+ // console.log("ok");
+
+ let Treatment = document.getElementById("Treatment").value;
+ // console.log(Treatment);
+
+
+
+ if (Treatment === 'TC') {
+ tr_name = 'Teeth Cleanings'
+ tr_s = TC_s;
+ tr_c = TC_c;
+
+ } else if (Treatment === 'F') {
+ tr_name = 'Fillings'
+ tr_s = F_s;
+ tr_c = F_c;
+
+ } else if (Treatment === 'RCT') {
+ tr_name = 'Root Canal Treatment'
+ tr_s = RCT_s;
+ tr_c = RCT_c;
+ } else if (Treatment === 'RCT_C') {
+ tr_name = 'RCT + Cover'
+ tr_s = RCT_C_s;
+ tr_c = RCT_C_c;
+ } else if (Treatment === 'BI') {
+ tr_name = 'Braces/invisaling'
+ tr_s = BI_s;
+ tr_c = BI_c;
+ }
+
+ document.getElementById("tre").innerHTML = tr_name;
+ document.getElementById("seating").innerHTML = tr_s;
+ document.getElementById("costing").innerHTML = tr_c;
+
+ // console.log(tr_name, tr_s, tr_c);
+
+ document.getElementById("Disp").style.display = 'block';
+
+
+
+}
+
+const handlClickApt = () => {
+
+ let aptDate = document.getElementById("apt-date").value;
+
+ let d = new Date(aptDate)
+
+ let costing1 = tr_c/tr_s
+
+ let print = ''
+
+
+ print += "| Treatment | Seating | Costing |
"
+
+
+
+ for (let i = 1; i <= tr_s; i++) {
+
+ print = print + ''
+
+ if (i === 1) {
+ print = print + '| '
+ print = print + tr_name;
+ print = print + ' | '
+ }
+
+
+ print = print + ''
+ print = print + d.toLocaleDateString(d.getDate() + 7);
+ print = print + ' | '
+
+ print = print + ''
+ print = print + costing1
+ print = print + ' | '
+
+ print = print + '
'
+
+ console.log(print);
+ // console.log(d.getDate());
+
+ d.setDate(d.getDate() + 7);
+
+ }
+
+ document.getElementById("display").innerHTML = print;
+
+}
diff --git a/js/event.js b/js/event.js
new file mode 100644
index 0000000..e502a67
--- /dev/null
+++ b/js/event.js
@@ -0,0 +1,111 @@
+// function handlMouse() {
+// console.log("mouse over");
+// }
+
+// function handlMouseout() {
+// console.log("mouse out");
+// }
+
+// function handlKyedown() {
+// // console.log("Key down");
+
+// document.getElementById("text").value
+// console.log("key down");
+// }
+
+// function handlKyepress() {
+// document.getElementById("text1").value
+// console.log("Key Press");
+// }
+
+
+// function handlKyeup() {
+// document.getElementById("text2").value
+// console.log("Key up");
+
+// }
+
+// function handlLoad() {
+// console.log("Load");
+// }
+
+// function handlBlur() {
+// console.log("Blur");
+
+// alert("BLUR Event");
+// }
+
+
+// const element = document.querySelector("div#scroll-box");
+// const output = document.querySelector("p#output");
+
+// element.addEventListener("scroll", (event1) => {
+// output.innerHTML = "Scroll event fired!";
+// setTimeout(() => {
+// output.innerHTML = "Waiting on scroll events...";
+// }, 1000);
+// });
+
+// console.log(event1);
+
+function handlClick() {
+ console.log("handlClick");
+}
+
+function handlMouseOver() {
+ console.log("handlMouseOver");
+}
+
+function handlMouseOut() {
+ console.log("handlMouseOut");
+}
+
+function handlMouseDown() {
+ console.log("handlMouseDown");
+}
+
+function handleMouseUp() {
+ console.log("handleMouseUp");
+}
+
+function handlKeyDown() {
+
+
+ let name = document.getElementById("name").value;
+
+ console.log(name);
+}
+
+function handlKeyUp() {
+
+
+ let name1 = document.getElementById("name1").value;
+
+ console.log(name1);
+}
+
+function handlFocus() {
+
+ document.getElementById("name1").style.backgroundColor = 'skyblue'
+
+ console.log("handlFocus");
+}
+
+function handlBlur() {
+ document.getElementById("name1").style.backgroundColor = 'white'
+
+ console.log("handlBlur");
+}
+
+window.onload = function() {
+ alert("Web Page Restart");
+ console.log("onload");
+}
+
+window.onunload = function() {
+ console.log("Clean");
+}
+
+window.onresize = function() {
+ console.log("Page REsize");
+}
\ No newline at end of file
diff --git a/js/formvalid.js b/js/formvalid.js
new file mode 100644
index 0000000..8173fbf
--- /dev/null
+++ b/js/formvalid.js
@@ -0,0 +1,106 @@
+function validateForm() {
+ // event.preventDefault()
+
+ let name = document.contactForm.name.value;
+ let email = document.contactForm.email.value;
+ let mobile = document.contactForm.mobile.value;
+ // console.log(name);
+ // console.log(email);
+ // console.log(mobile);
+
+ if (name === '') {
+ document.getElementById("nameErr").innerHTML = "Please Enter Name"
+ } else {
+
+ let nameReg = /^[a-zA-Z ]{2,30}$/;
+
+ if (nameReg.test(name)) {
+ document.getElementById("nameErr").innerHTML = " "
+ } else {
+ document.getElementById("nameErr").innerHTML = "Please Enter Valid Name"
+ }
+ }
+
+ if (email === '') {
+ document.getElementById("emailErr").innerHTML = "Please Enter Email"
+ } else {
+
+ let emailReg = /\S+@\S+\.\S+/;
+
+ if (emailReg.test(email)) {
+ document.getElementById("emailErr").innerHTML = " "
+ } else {
+ document.getElementById("emailErr").innerHTML = "Please Enter Valid Email"
+ }
+
+ }
+
+ if (mobile === '') {
+ document.getElementById("mobileErr").innerHTML = "Please Enter Mobile Number"
+ } else {
+
+ let mobileReg = /^[0]?[1-9]\d{9}$/;
+
+ if (mobileReg.test (mobile)) {
+ document.getElementById("mobileErr").innerHTML = " "
+ } else {
+ document.getElementById("mobileErr").innerHTML = "Please Enter Valid Mobile Number"
+ }
+
+ }
+
+ let country = document.contactForm.country.value;
+ // console.log(country);
+
+ if (country === '0') {
+ document.getElementById("countryErr").innerHTML = "Please Select Country"
+ } else {
+ document.getElementById("countryErr").innerHTML = " "
+ }
+
+
+ let gender1 = document.contactForm.gender.value;
+
+ let hobby = document.contactForm.hobbies;
+ // console.log(hobby[0].value , hobby[0].checked);
+
+ let gender1E = true;
+ let hobbyE = true;
+
+
+ if (gender1 === "") {
+ document.getElementById("genderErr").innerHTML = "please select gender."
+ } else {
+ document.getElementById("genderErr").innerHTML = ""
+ gender1E = false;
+ // console.log(gender1E);
+ }
+
+ let flag = false;
+ for (let i = 0; i < hobby.length; i++) {
+ if (hobby[i].checked) {
+ flag = true;
+ break;
+ }
+ }
+
+ if (flag) {
+ document.getElementById("hobbyErr").innerHTML = "";
+ hobbyE = false;
+ // console.log(hobbyE);
+ } else {
+ document.getElementById("hobbyErr").innerHTML = "please select any one hobby."
+ }
+
+ if (nameE || emailE || numberE || countryE || gender1E || hobbyE) {
+ // console.log(nameE , emailE , numberE , countryE , gender1E , hobbyE);
+ return false;
+ } else {
+ return true;
+ }
+
+
+ // console.log(name1,gender,hobby);
+
+ // return false;
+}
\ No newline at end of file
diff --git a/js/hoisting.js b/js/hoisting.js
new file mode 100644
index 0000000..176e81a
--- /dev/null
+++ b/js/hoisting.js
@@ -0,0 +1,108 @@
+
+
+// "use strict"
+
+// x = 10;
+
+// console.log(x);
+
+
+//1.
+
+// console.log(x); // undefined // Declaration Using Var Move to Top
+// var x;
+// x = 10;
+
+
+//2.
+
+// console.log(x); //Declaration Using let/const can not move to top
+// let x ; //const x;
+// x = 10;
+
+
+//3.
+
+// console.log(x); //Not Accsess Declaration or initialization
+// x = 10;
+
+
+//4.
+
+// x = 10;
+// console.log(x); //10 //Declaration done automaticly at the top and Accsess 10 from memory
+
+
+//5.
+
+// x = 10;
+// let x;
+// console.log(x); //Eorro
+
+
+//6.
+
+// console.log(x); //undefined
+// x = 10;
+// var x;
+
+//FUNCTION Hoisting
+
+//1.
+
+// function demo() {
+// var x;
+// x = 10;
+// console.log(x);
+// }
+
+// demo()
+
+// console.log(x);
+
+
+
+//2.
+
+// function demo() {
+// if (true) {
+// var x;
+// x = 10;
+// }
+// console.log(x);
+// }
+
+// demo()
+
+
+
+//3.
+
+// function deno() {
+// if (true) {
+// let x;
+
+// x = 10;
+// }
+
+// console.log(x);
+// }
+
+// demo();
+
+// console.log(x);
+
+
+
+//4.
+
+// function demo() {
+// let x;
+
+// if (true) {
+// x = 10;
+// }
+// console.log(x);
+// }
+
+// demo()
diff --git a/js/income.js b/js/income.js
new file mode 100644
index 0000000..a7987fb
--- /dev/null
+++ b/js/income.js
@@ -0,0 +1,76 @@
+function handlSubmit() {
+ event.preventDefault()
+ // console.log("ok");
+
+
+
+ let salary = parseInt(document.getElementById("salary").value);
+ let salaryE = true;
+
+ let s1 = 0, s2 = 0, s3 = 0, s4 = 0, s5 = 0, s6 = 0, total;
+
+
+
+ if (salary <= 300000) {
+ s1 = 0, s2 = 0, s3 = 0, s4 = 0, s5 = 0, s6 = 0
+ } else if (salary <= 600000) {
+ s1 = 0
+ s2 = (salary - 300000) * 0.5;
+ } else if (salary <= 900000) {
+ s1 = 0
+ s2 = (300000) * 0.5;
+ s3 = (salary - 600000) * 0.10;
+
+ } else if (salary <= 1200000) {
+ s1 = 0
+ s2 = (300000) * 0.5;
+ s3 = (300000) * 0.10;
+ s4 = (salary - 900000) * 0.15;
+
+ } else if (salary <= 1500000) {
+ s1 = 0
+ s2 = (300000) * 0.5;
+ s3 = (300000) * 0.10;
+ s4 = (300000) * 0.15;
+ s5 = (salary - 1200000) * 0.20;
+
+ } else if (salary > 1500000) {
+ s1 = 0
+ s2 = (300000) * 0.5;
+ s3 = (300000) * 0.10;
+ s4 = (300000) * 0.15;
+ s5 = (300000) * 0.20;
+ s6 = (salary - 1500000) * 0.30;
+ }
+
+ total = s1 + s2 + s3 + s4 + s5 + s6;
+
+ if (salary <= 0) {
+ document.getElementById("error").innerHTML = "Please Enter Valid Salary"
+ } else if (!salary) {
+ document.getElementById("error").innerHTML = "Please Enter Salary"
+ } else {
+ document.getElementById("error").innerHTML = ""
+ salaryE = false
+ }
+
+ if (salaryE) {
+ return false
+ } else {
+
+ document.getElementById("total").innerHTML = total
+ document.getElementById("slab-1").innerHTML = s1
+ document.getElementById("slab-2").innerHTML = s2
+ document.getElementById("slab-3").innerHTML = s3
+ document.getElementById("slab-4").innerHTML = s4
+ document.getElementById("slab-5").innerHTML = s5
+ document.getElementById("slab-6").innerHTML = s6
+
+
+ return true;
+ }
+
+
+ // console.log(s1, s2, s3, s4, s5, s6);
+
+}
\ No newline at end of file
diff --git a/js/intrest.js b/js/intrest.js
new file mode 100644
index 0000000..d593893
--- /dev/null
+++ b/js/intrest.js
@@ -0,0 +1,63 @@
+function handlSubmit() {
+ event.preventDefault();
+ // console.log("Done");
+
+ let P = parseFloat(document.getElementById("P").value);
+ let r = parseFloat(document.getElementById("r").value);
+ let time = parseFloat(document.getElementById("time").value);
+ let select = document.getElementById("select").value;
+
+ let PrincipleE = true;
+ let rateE = true;
+ let timeE = true;
+ let selectE = true;
+
+ // console.log(P,r,time,select);
+
+ let ans = "";
+
+
+ if (P > 0 && P <= 10000000) {
+ document.getElementById("PrincipleErr").innerHTML = "";
+ PrincipleE = false;
+ } else {
+ document.getElementById("PrincipleErr").innerHTML = "Please Enter Amount";
+ }
+
+ if (r > 0 && r <= 10000000) {
+ document.getElementById("rateErr").innerHTML = "";
+ rateE = false;
+ } else {
+ document.getElementById("rateErr").innerHTML = "Please Enter Rate";
+ }
+
+ if (time > 0 && time <= 1000) {
+ document.getElementById("timeErr").innerHTML = "";
+ timeE = false;
+ } else {
+ document.getElementById("timeErr").innerHTML = "Please Enter Time";
+ }
+
+ if (select === '0') {
+ document.getElementById("selectErr").innerHTML = "Please Enter Time Period";
+
+ } else {
+ document.getElementById("selectErr").innerHTML = "";
+ selectE = false;
+ }
+
+ if (PrincipleE || rateE || timeE || selectE ) {
+ return false;
+ } else {
+ if (select === 'y') {
+ ans = (P * r * time)/100;
+ } else if (select === 'm') {
+ ans = (P * r * time)/1200
+
+ }
+ document.getElementById("total").innerHTML = ans
+ return false
+ }
+
+ // console.log(ans);
+}
\ No newline at end of file
diff --git a/js/t.js b/js/t.js
new file mode 100644
index 0000000..0b6c0c2
--- /dev/null
+++ b/js/t.js
@@ -0,0 +1,56 @@
+function handleSubmit () {
+ // console.log("ok");
+
+ let value = parseFloat(document.getElementById("value").value);
+ let co1 = document.getElementById("conver1").value;
+ let co2 = document.getElementById("conver2").value;
+
+ // console.log(value , co1 , co2);
+
+ let convert;
+ let valueE = true;
+
+
+
+ if (!value || value <= 0) {
+ document.getElementById("valueEro").innerHTML = "please enter value";
+ }else {
+ document.getElementById("valueEro").innerHTML = "";
+ valueE = false ;
+ }
+
+ // document.getElementById("ans").innerHTML = convert;
+ // console.log(convert);
+
+ if (valueE) {
+ return false
+ }else {
+ if (co1 === "cm" && co2 === "km") {
+ convert = value / 100000;
+ }else if (co1 === "cm" && co2 === "m") {
+ convert = value / 100;
+ }else if (co1 === "cm" && co2 === "cm") {
+ convert = value;
+ }
+
+ if (co1 === "km" && co2 === "cm") {
+ convert = value * 100000;
+ }else if (co1 === "km" && co2 === "m") {
+ convert = value * 1000;
+ }else if (co1 === "km" && co2 === "km") {
+ convert = value;
+ }
+
+ if (co1 === "m" && co2 === "cm") {
+ convert = value * 100;
+ }else if (co1 === "m" && co2 === "km") {
+ convert = value / 1000;
+ }else if (co1 === "m" && co2 === "m") {
+ convert = value ;
+ }
+ document.getElementById("ans").innerHTML = convert;
+ return false
+ }
+
+ // return false
+}
\ No newline at end of file
diff --git a/js/test1.js b/js/test1.js
new file mode 100644
index 0000000..7824c19
--- /dev/null
+++ b/js/test1.js
@@ -0,0 +1,66 @@
+function handlSubmit() {
+ event.preventDefault()
+ // console.log("ok");
+
+ let ans = parseFloat(document.getElementById("Number").value);
+ let select = document.getElementById("select").value;
+ let select1 = document.getElementById("select1").value;
+
+ // console.log(ans,select,select1);
+
+ let calculat;
+ let ansE = true;
+
+ if (!ans || ans <= 0) {
+ document.getElementById("NumberErr").innerHTML = "Please Enter Vaule"
+ } else {
+ document.getElementById("NumberErr").innerHTML = " "
+ ansE = false;
+ }
+
+ if (ansE) {
+ return false;
+ } else {
+ if (select === "cm" && select1 === "km") {
+ calculat = ans / 100000;
+ }else if (select === "cm" && select1 === "m") {
+ calculat = ans / 100;
+ }else if (select === "cm" && select1 === "km") {
+ calculat = ans;
+ }
+
+ if (select === "m" && select1 === "cm") {
+ calculat = ans * 100000;
+ }else if (select === "m" && select1 === "m") {
+ calculat = ans * 1000;
+ }else if (select === "m" && select1 === "km") {
+ calculat = ans;
+ }
+
+ if (select === "km" && select1 === "cm") {
+ calculat = ans * 100;
+ }else if (select === "km" && select1 === "m") {
+ calculat = ans / 1000;
+ }else if (select === "km" && select1 === "km") {
+ calculat = ans ;
+ }
+
+ document.getElementById("total").innerHTML = calculat;
+ return false
+ }
+
+ // if (ans === '') {
+ // document.getElementById("NumberErr").innerHTML = "Please Enter Value";
+ // } else {
+ // let numReg = /^[0]?[1-1000]\d{1000}$/;
+
+ // if (numReg.test (ans)) {
+ // document.getElementById("NumberErr").innerHTML = "";
+ // } else {
+ // document.getElementById("NumberErr").innerHTML = "Please Enter Valid value";
+ // }
+ // // document.getElementById("NumberErr").innerHTML = "";
+ // }
+
+ // return false;
+}
\ No newline at end of file
diff --git a/js/test2.js b/js/test2.js
new file mode 100644
index 0000000..2bd9c1a
--- /dev/null
+++ b/js/test2.js
@@ -0,0 +1,69 @@
+function handlSubmit() {
+ // event.defaultPrevented()
+ // console.log("ok");
+
+ let n = document.getElementById("name").value;
+ let bd = parseInt(document.getElementById("b_date").value);
+ let mn = parseInt(document.getElementById("m_no").value);
+
+ console.log(n, bd, mn);
+
+ let Salaried
+ let Self_Employee
+
+ let Primium
+ let Age
+
+
+ if (Salaried) {
+ if (Age >= 18 && Age <= 25) {
+ Primium = 1000
+ } else if (Age >= 26 && Age <= 35) {
+ Primium = 1500
+ } else if (Age >= 36 && Age <= 45) {
+ Primium = 2000
+ } else if (Age > 45) {
+ Primium = 2500
+ }
+ } else if (Self_Employee) {
+ if (Age >= 18 && Age <= 25) {
+ Primium = 1000 * 0.10
+ } else if (Age >= 26 && Age <= 35) {
+ Primium = 1500 * 0.10
+ } else if (Age >= 36 && Age <= 45) {
+ Primium = 2000 * 0.10
+ } else if (Age > 45) {
+ Primium = 2500 * 0.10
+ }
+ }
+
+}
+
+function handlClick() {
+ // console.log("kpokjj");
+
+
+ let print = ''
+
+ print += "| Name | Age | Mobile No | Insurance Amount | Primium | "
+
+
+ let income;
+ let Return;
+
+
+ if (income < 300000) {
+ Return = 5000000
+ } else if (income >= 300000 && income <= 500000) {
+ Return = 10000000
+ } else if (income >= 500000 && income <= 1000000) {
+ Return = 15000000
+ } else if (income >1000000) {
+ Return = 20000000
+ }
+
+ document.getElementById("disp").innerHTML = print
+}
+
+
+
diff --git a/js/test2H.js b/js/test2H.js
new file mode 100644
index 0000000..87c9d73
--- /dev/null
+++ b/js/test2H.js
@@ -0,0 +1,137 @@
+let Age;
+let amount;
+let ans;
+
+
+function handlSubmit() {
+ // console.log("okkkkk");
+
+ let age = document.getElementById("date").value;
+ let occupation = document.formvalue.work.value;
+ let income = document.getElementById("income").value;
+ let amo = document.getElementById("amount").value;
+ let smoke = document.formvalue.smokeing.value;
+
+ let d = new Date(age);
+ let year = (d.getFullYear());
+ Age = 2023 - year;
+ // console.log(finalAge);
+ let Premium;
+ let Premium18 = 1000;
+ let Premium26 = 1500;
+ let Premium36 = 2000;
+ let Premium45 = 2500;
+
+
+ if (occupation === "Self_Employee") {
+ if (Age >= 18 && Age <= 25) {
+ Premium = (Premium18 * 0.10) + 1000;
+ } else if (Age >= 26 && Age <= 35) {
+ Premium = (Premium26 * 0.10) + 1500;
+ } else if (Age >= 36 && Age <= 45) {
+ Premium = (Premium36 * 0.10) + 2000;
+ } else if (Age > 45) {
+ Premium = (Premium45 * 0.10) + 2500;
+ }
+ } else {
+ if (Age >= 18 && Age <= 25) {
+ Premium = 1000;
+ } else if (Age >= 26 && Age <= 35) {
+ Premium = 1500;
+ } else if (Age >= 36 && Age <= 45) {
+ Premium = 2000;
+ } else if (Age > 45) {
+ Premium = 2500;
+ }
+ }
+
+ // console.log(Premium);
+
+
+ if (income === "0-3") {
+ amount = 5000000;
+ } else if (income === "3-5") {
+ amount = 10000000;
+ } else if (income === "5-10") {
+ amount = 15000000;
+ } else if (income === "up10") {
+ amount = 20000000;
+ }
+
+ if (income === "0-3" && amo >= 5000000) {
+ document.getElementById("error").innerHTML = "please enter amuont"
+ } else if (income === "3-5" && amo > 10000000) {
+ document.getElementById("error").innerHTML = "please enter amuont"
+ } else if (income === "5-10" && amo > 15000000) {
+ document.getElementById("error").innerHTML = "please enter amuont"
+ } else if (income === "up10" && amo > 20000000) {
+ document.getElementById("error").innerHTML = "please enter amuont"
+ } else {
+ document.getElementById("error").innerHTML = ""
+ }
+
+
+ let smokePremium;
+
+ if (smoke === "Yes") {
+ if (Age >= 18 && Age <= 25) {
+ smokePremium = (Premium18 * 0.20);
+ } else if (Age >= 26 && Age <= 35) {
+ smokePremium = (Premium26 * 0.20);
+ } else if (Age >= 36 && Age <= 45) {
+ smokePremium = (Premium36 * 0.20);
+ } else if (Age > 45) {
+ smokePremium = (Premium45 * 0.20);
+ }
+ } else {
+ smokePremium = 0;
+ }
+
+
+ ans = smokePremium + Premium;
+ // console.log(ans);
+
+ return false
+}
+
+function handleClick() {
+ // event.preventDefault();
+ let Fullname = document.getElementById("name").value;
+ let number = document.getElementById("m_no").value;
+
+ let print = "";
+
+ print += '| Name | Age | Mobile number | Insuarance amount | Premium |
'
+
+ print += ''
+
+ print += '| '
+ print += Fullname;
+ print += ' | '
+
+ print += ''
+ print += Age;
+ print += ' | '
+
+ print += ''
+ print += number;
+ print += ' | '
+
+ print += ''
+ print += amount;
+ print += ' | '
+
+ print += ''
+ print += ans;
+ print += ' | '
+
+ print += '
'
+
+ print += '
'
+
+
+ document.getElementById("temp").innerHTML = print;
+ document.getElementById("Ans").style.display = "block";
+
+ // return false
+}
\ No newline at end of file
diff --git a/js/udf.js b/js/udf.js
new file mode 100644
index 0000000..7f2a8d0
--- /dev/null
+++ b/js/udf.js
@@ -0,0 +1,65 @@
+function greeting() {
+ console.log("Hello Ji");
+}
+greeting();
+
+function calAge(birthyear) {
+ let age = 2023 - birthyear;
+
+ return age;
+}
+
+let res = calAge(2003);
+console.log(res);
+
+//Arrow function
+
+const greeting1 = (bornyear) => {
+
+ let age1 = 2023 - bornyear;
+
+ return age1;
+}
+
+let res1 = greeting1(2003);
+console.log(res1);
+
+let res2 = greeting1(1947);
+console.log(res2);
+
+
+//Nasted Function
+
+const costing = (place) => {
+ if (place === 'Goa') {
+ return 35000;
+ } else if (place === 'Manali') {
+ return 90000;
+ } else if (place === 'Kerela') {
+ return 20000;
+ } else if (place === 'Rajesthan') {
+ return 60000;
+ }
+}
+
+
+const package = (place) => {
+ let cost1 = costing(place);
+
+ let msg;
+
+ msg = place + ' Costing You ' + cost1 + '.';
+
+ return msg;
+}
+
+let res3 = package('Goa');
+let res4 = package('Manali');
+let res5 = package('Kerela');
+let res6 = package('Rajesthan')
+
+
+console.log(res3);
+console.log(res4);
+console.log(res5);
+console.log(res6);
diff --git a/js/variable.js b/js/variable.js
index e69de29..6f90a95 100644
--- a/js/variable.js
+++ b/js/variable.js
@@ -0,0 +1,96 @@
+// VAR
+
+// 1.
+
+// var x = 10;
+// var x = 20;
+// console.log(x);
+
+// 2.
+
+// var x;
+// console.log(x);
+
+// 3.
+
+// var x = 100;
+// var x;
+// console.log(x);
+
+
+// 4.
+
+// var x = 10;
+
+// variables have no block scop
+
+// {
+// //block scope
+// var x = 30;
+// }
+// console.log(x)
+
+
+
+
+
+
+// LET
+
+// 1.
+
+// let x = 10;
+// let x = 20;
+// console.log(x); // error
+
+// 2.
+
+// let x = 10;
+
+// {
+// let x = 20;
+// console.log(x);
+// }
+// console.log(x); // 10
+
+// 3.
+
+// let x;
+// x = 10;
+// x = x + 5;
+
+// console.log(x); // 15
+
+
+
+
+// CONST
+
+// 1.
+
+// const x = 10;
+// const x = 20;
+// console.log(x); // error
+
+// 2.
+
+// const x = 10;
+// {
+// const x = 20;
+// console.log(x); // 20
+// }
+// console.log(x); // 10
+
+// 3.
+
+// const x ;
+// x = 10;
+// console.log(x); // error
+
+
+// 4.
+
+// const x = 10;
+// x = x + 5;
+// console.log(x); //error
+
diff --git a/test1.html b/test1.html
new file mode 100644
index 0000000..f07b47c
--- /dev/null
+++ b/test1.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+ Document
+
+
+
+
+
+
+ Ans is:
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test2.html b/test2.html
new file mode 100644
index 0000000..a9d82e2
--- /dev/null
+++ b/test2.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ Document
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test2H.html b/test2H.html
new file mode 100644
index 0000000..336f899
--- /dev/null
+++ b/test2H.html
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+ Insuarance
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/variable.html b/variable.html
index b7a3e34..1e3193f 100644
--- a/variable.html
+++ b/variable.html
@@ -7,5 +7,7 @@
variable
+
+