ASDV-WebDev/Semester 1/Assignments/JavaScript/chapter2LatBame/public_html/Challenge1.html

19 lines
849 B
HTML
Raw Normal View History

2023-03-07 13:29:47 -06:00
<!DOCTYPE html>
<!--
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/ClientSide/html.html to edit this template
-->
<html>
<head>
2023-03-16 23:06:34 -05:00
<title>Challenge 1</title>
2023-03-07 13:29:47 -06:00
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript">
var firstName = prompt("Please enter your first name");
var lastName = prompt("Please enter your last name");
var school = prompt("Please enter your school's name", "South Lousiana Community College");
var username = firstName.charAt(0) + lastName.charAt(0) + school.slice(0, school.indexOf(" "));
document.write("Your username is " + username);
</script>
</html>