-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
30 lines (19 loc) · 810 Bytes
/
app.js
File metadata and controls
30 lines (19 loc) · 810 Bytes
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
let userName =prompt('Enter your name ?');
let Age =prompt('Enter your age ');
let maj =prompt('Enter your major');
let brsis =prompt('how many brothers and sisters do you have?');
//document.getElementById("div1").innerHTML = brsis;
//var xx = document.getElementById("div11").innerHTML;
//alert(xx);
// div11.innerHTML += '<p style=text-align: center;color: rgb(238, 225, 110);background-color: rgb(90, 90, 72);>
alert('welcome ' + userName );
alert(Age +' is the best age so enjoy');
alert(maj +' it\'s amazing major');
alert( 'you have '+brsis+' of brothers and sisters' );
console.log ('User Name is ' + userName);
console.log ('Age '+ Age);
console.log('major is ' + maj);
document.write(userName +'\n');
document.write(Age +'\n');
document.write(maj +'\n');
document.write(brsis +'\n');