-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
15 lines (12 loc) · 820 Bytes
/
app.js
File metadata and controls
15 lines (12 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
let userName = prompt ('what\'s your name ?') ;
console.log('your name is '+userName);
alert ('your name is '+userName);
let faVclub = prompt ('what\'s your favorite football club ?');
console.log('your favorite football club is '+faVclub);
alert ('your name is '+userName+', you are a fan of '+faVclub);
let faVplayer = prompt ('who is your favorite player ?');
console.log('your favorite player is '+faVplayer);
alert ('your name is '+userName+', you are a fan of '+faVclub+' your favorite player is '+faVplayer);
let bestPlayer = prompt ('who you think is the best player in the world ?');
console.log('the best player in the world is '+bestPlayer)
alert ('your name is '+userName+', you are a fan of '+faVclub+' your favorite player is '+faVplayer+' and you think '+bestPlayer+' is the best player in the world');