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 |
Dashboard | 2,803 Kb |
Animations | 1,595 Kb |
CSS Borders | 1,433 Kb |
Factorial | 1,158 Kb |
Happy Monday | 0 Kb |
Rectangle Creator | 0 Kb |
Organizing Your HTML | 1,676 Kb |
My Interests | 1,996 Kb |
News | 1,152 Kb |
Linear Equations | 2,122 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 |
Parallax scrolling scene | Iharosi | 2,485 Kb |
Slides-07-1 POSITION | Exhtml | 1,909 Kb |
HTML5 Video Autoplay | Zivcos | 1,352 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 Kb |
Get third wednesday | Wojtek1150 | 2,691 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Animate a paper plane along an SVG path, looking ahead | PotatoDie | 3,734 Kb |
Search Box in Content Moves to Fixed Header | Chriscoyier | 2,768 Kb |
Vue Transition | Chenming142 | 4,561 Kb |
Wikipedia Viewer | Thomasvaeth | 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!