-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
68 lines (65 loc) · 2.51 KB
/
app.js
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// var userncme = prompt(`Please tell your name!`);
// alert('Hello ' + userncme + '! Welcome to my Website');
document.write("<br>");
document.write("<h3>Question no 01</h3>");
document.write("<br>");
document.write("<h4>Result</h4>");
var c = 10;
document.write(`The value of c is : ` + c);
document.write("<br>");
document.write("<h3>.........................................</h3>")
document.write("<br>");
document.write('The value of ++c is : ' + ++c);
document.write("<br>");
document.write('Now the value of c is ' + c);
document.write("<br>");
document.write("<br>");
document.write('The value of c++ is : ' + c++);
document.write("<br>");
document.write('Now the value of c is ' + c);
document.write("<br>");
document.write("<br>"); document.write('The vclue of --c is : ' + --c);
document.write("<br>");
document.write('Now the value of c is ' + c);
document.write("<br>");
document.write("<br>"); document.write('The vclue of c-- is : ' + c--);
document.write("<br>");
document.write('Now the value of c is ' + c);
document.write("<br>");
document.write("<br>");
document.write("<h3>Question no 02</h3>");
document.write("<br>");
var a = 2;
var b = 1;
console.log((--a) - (--b) + (++b) + (b--));
document.write('a is 2');
document.write("<br>");
document.write('b is 1');
document.write("<br>");
document.write('result is 3');
document.write("<br>");
// console.log(--a); is 1
// console.log(--a - --b); is 0
// console.log(--a - --b + ++b); is 0
// console.log(--a - --b + ++b + b--); is -1
document.write("<br>");
document.write("<h3>Question no 03</h3>");
document.write("<br>");
document.write('Try to question example')
document.write("<br>");
document.write('<button onclick=" var username = prompt(`Please tell your name!`);alert(`Hello ${username}! Welcome to my Website`);">click her</button>');
document.write("<br>");
document.write("<br>");
document.write("<h3>Question no 05</h3>");
document.write("<br>");
document.write('Try multiplication table of 5 on lucky number in question example:')
document.write("<br>");
document.write('<button onclick=" var usernumber = prompt(`Please put your lacky number!\rMuiltiply by 5`);alert(usernumber*5);">click her</button>');
document.write("<br>");
document.write("<br>");
document.write("<h3>Question no 06</h3>");
document.write("<br>");
document.write('<p>This Question for you! 👍</p>');
document.write("<br>");
document.write("<br>");
document.write(`<div style="color: blue;background-color: black;"><br /><h1>Best OF luck<span style='font-size:50px;'>👋</span></h1><br /></div>`);