123456789101112131415161718192021222324252627 |
- <!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>
- </head>
- <body>
- <script>
- let userName3 = prompt("Введите ваше имя");
- let userSurname3 = prompt("Введите вашу фамилию");
- let userPatronymic3 = prompt("Введите ваше отчество");
- if (userName3 == null || " ") {
- userName3 = "Иван";
- }
- if (userSurname3 == null || " ") {
- userSurname3 = "Иванов";
- }
- if (userPatronymic3 == null || " ") {
- userPatronymic3 = "Иванович";
- }
- alert(userSurname3 + " " + userName3 + " " + userPatronymic3);
- </script>
- </body>
- </html>
|