You should know, who your users are.
Lets ask them to enter their name. The question should be - What is your name?
.
If user has entered something - log this string to the console.
If user has entered nothing - log the No name provided
string.
Use internal script
This task is part of the Full-Stack JavaScript Course
If you have any issues with it, you can ask for community help below the post
Feel free to help others if you’ve already solved the task
index.html
<!DOCTYPE html>
<html>
<head>
<title>Prompt practice</title>
</head>
<body>
<h2 style="text-align: center;">Open console</h2>
</body>
</html>