-
Notifications
You must be signed in to change notification settings - Fork 0
/
2nd.html
53 lines (53 loc) · 1.58 KB
/
2nd.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
h1{
background-color: blue;
}
</style>
</head>
<body>
<input value="100" type="text" name="" id="input1">
<input value="70" type="text" name="" id="input2">
<h1 id="testing">write</h1>
</body>
</html>
<script>
// String methods
let sentence = "Go to market and buy data odum"
console.log(sentence);
console.log(sentence.replace("market", "mall"));
console.log(sentence.replace("data", "nonso"));
console.log(sentence.toLocaleUpperCase());
console.log(sentence.toLocaleLowerCase());
console.log(sentence.slice(0,8));
let input1 = document.getElementById("input1").value;
let input2 = document.getElementById("input2").value;
let name ="mike"
console.log(name);
alert(name)
document.body.innerHTML = name
// DATA SVGUnitTYPES
let named = "nonso"
console.log(named);
console.log("This data type is a string", named);
let credit = 80;
let debit = 40;
let sum = credit + debit
console.log("This data type is number", sum);
console.log(credit + debit);
console.log(credit > debit);
if(debit > credit){
alert("Gbase due")
}
let bank;
console.log(bank);
let erro = null
console.log(erro);
// document.getElementById("testing").innerHTML = write else
</script>