Input and Output Test
How do I make an input and output test?
What is a input and output test? How do you make a input and output test? This script and codes were developed by Anthony Keithley on 24 December 2022, Saturday.
Input and Output Test - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Input and Output Test</title>
</head>
<body> <h1>Enter your Username and Password</h1>
<input type="text" id="name">
<input type="password" id="pw">
<h2 id="by">Enter your Birth Year</h2>
<input type="number" id="year" min="1998" max="2017">
<button onclick="myFunction()">Click Me!</button>
<h2 id="output"></h2>
<h2 id="evenYear"></h2> <script src="js/index.js"></script>
</body>
</html>
Input and Output Test - Script Codes JS Codes
function isEven(x){ if(x % 2 == 0){ return true; } else { return false; }
}
function myFunction(){ var userName = document.getElementById("name").value; var password = document.getElementById("pw").value; var year = document.getElementById("year").value; document.getElementById("output").innerHTML = "Your username is " + userName + " and your password is " + password + " and you are " + (2017 - year) + " years old."; document.getElementById("evenYear").innerHTML = "You were born in an even year: " + isEven(year);
}
Developer | Anthony Keithley |
Username | KeithleySLHS |
Uploaded | December 24, 2022 |
Rating | 3 |
Size | 1,714 Kb |
Views | 4,048 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
My Interests | 1,996 Kb |
CSS Borders | 1,433 Kb |
Organizing Your HTML | 1,676 Kb |
JS One | 1,637 Kb |
Factorial | 1,158 Kb |
Rectangle Creator | 0 Kb |
TipCalc | 2,223 Kb |
Quadratic | 2,234 Kb |
Dashboard | 2,803 Kb |
GetRekt | 2,206 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Scifi-style Interative Form | Aaronchuo | 4,566 Kb |
TimelineMax Circular loader | Nicolund | 2,649 Kb |
A Pen by Matt Popovich | Mpopv | 3,349 Kb |
Twitch Live Channels | Inkblotty | 4,956 Kb |
Weather App | OmranAbazid | 2,596 Kb |
CSS Org Chart | Appirio-ux | 3,882 Kb |
Objects | Bonzaipenguin | 2,616 Kb |
Masonry | Uriuriuriu | 5,005 Kb |
Birthday Party Starter | Aussieyang | 1,629 Kb |
Amazing CSS Menu with Notification Badges | Faizanasad | 2,549 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!