FreeCodeCamp - Javascript Calculator
How do I make an freecodecamp - javascript calculator?
What is a freecodecamp - javascript calculator? How do you make a freecodecamp - javascript calculator? This script and codes were developed by Jason Thomas on 14 September 2022, Wednesday.
FreeCodeCamp - Javascript Calculator - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>freeCodeCamp - Javascript Calculator</title> <link rel='stylesheet prefetch' href='https://material.angularjs.org/1.1.4/docs.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <form Name="calc">
<table id="calc" border=2>
<tr>
<td colspan=5><input id="btn" name="display" onkeypress="return event.charCode >= 48 && event.charCode <= 57" type="text"></td>
<td style="display:none"><input name="M" type="number"></td>
</tr>
<tr>
<td><input id="btn" type=button value="MC" OnClick="calc.M.value=''"></td>
<td><input id="btn" type=button value="0" OnClick="calc.display.value+='0'"></td>
<td><input id="btn" type=button value="1" OnClick="calc.display.value+='1'"></td>
<td><input id="btn" type=button value="2" OnClick="calc.display.value+='2'"></td>
<td><input id="btn" type=button value="+" OnClick="calc.display.value+='+'"></td>
</tr>
<tr>
<td><input id="btn" type=button value="MS" OnClick="calc.M.value=calc.display.value"></td>
<td><input id="btn" type=button value="3" OnClick="calc.display.value+='3'"></td>
<td><input id="btn" type=button value="4" OnClick="calc.display.value+='4'"></td>
<td><input id="btn" type=button value="5" OnClick="calc.display.value+='5'"></td>
<td><input id="btn" type=button value="-" OnClick="calc.display.value+='-'"></td>
</tr>
<tr>
<td><input id="btn" type=button value="MR" OnClick="calc.display.value=calc.M.value"></td>
<td><input id="btn" type=button value="6" OnClick="calc.display.value+='6'"></td>
<td><input id="btn" type=button value="7" OnClick="calc.display.value+='7'"></td>
<td><input id="btn" type=button value="8" OnClick="calc.display.value+='8'"></td>
<td><input id="btn" type=button value="x" OnClick="calc.display.value+='*'"></td>
</tr>
<tr>
<td><input id="btn" type=button value="M+" OnClick="calc.M.value=(Number(calc.M.value))+(Number(calc.display.value))"></td>
<td><input id="btn" type=button value="9" OnClick="calc.display.value+='9'"></td>
<td><input id="btn" type=button value="±"
OnClick="calc.display.value=(calc.display.value==Math.abs(calc.display.value)?-(calc.display.value):Math.abs(calc.display.value))">
</td>
<td><input id="btn" type=button value="=" OnClick="calc.display.value=eval(calc.display.value)"></td>
<td><input id="btn" type=button value="/" OnClick="calc.display.value+='/'"></td>
</tr>
<tr>
<td><input id="btn" type=button value="1/x" OnClick="calc.display.value=1/calc.display.value"></td>
<td><input id="btn" type=button value="." OnClick="calc.display.value+='.'"></td>
<td><input id="btn" type=button value="x2" OnClick="calc.display.value=Math.pow(calc.display.value,2)"></td>
<td><input id="btn" type=button value="√" OnClick="calc.display.value=Math.sqrt(calc.display.value)"></td>
<td><input id="btn" type=button value="C" OnClick="calc.display.value=''"></td>
</tr>
</table>
</form> <script src='https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.min.js'></script>
</body>
</html>
FreeCodeCamp - Javascript Calculator - Script Codes CSS Codes
#calc{width:300px;height:250px;}
#btn{width:100%;height:40px;font-size:20px;}
Developer | Jason Thomas |
Username | samoht513 |
Uploaded | September 14, 2022 |
Rating | 3 |
Size | 1,907 Kb |
Views | 38,456 |
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 |
FreeCodeCamp - Simon Game | 4,301 Kb |
FreeCodeCamp - Local Weather App | 3,093 Kb |
FreeCodeCamp - Tic Tac Toe Game | 2,820 Kb |
Html - canvas | 1,658 Kb |
FreeCodeCamp - Pomodoro Clock | 2,959 Kb |
Freecodecamp - Tribute Page | 3,583 Kb |
FreeCodeCamp - Random Quote Generator | 3,218 Kb |
FreeCodeCamp - Wikipedia Viewer | 2,692 Kb |
FreeCodeCamp - Twitchtv API | 2,531 Kb |
FreeCodeCamp - Personal Portfolio | 4,512 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 |
JQuery AJAX reddit Exercise | Btholt | 1,777 Kb |
A Pen by Matt Popovich | Mpopv | 3,349 Kb |
Update CSS Variables with JS | Wesbos | 2,335 Kb |
TweenMax transformOrigin Bubble | Nicolund | 2,209 Kb |
Motion Lines - codevember - 02 - 2016 | Caiocares | 2,744 Kb |
Minimelephant | Smashlee | 2,507 Kb |
Wip elementary os navbar | Nickcolley | 2,993 Kb |
Mini Profile | Frytyler | 3,828 Kb |
A Pen by lizz | Lizz | 10,068 Kb |
Countdown Timer | Massiebn | 3,001 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!