Commit f4212f68 authored by Sander Kvenild's avatar Sander Kvenild
Browse files

Removed first button

parent 7347b0fb
......@@ -22,7 +22,6 @@
</head>
<body>
<h1>OOP 2</h1>
<button onclick="tre_kontoer()">Simuler</button>
<table>
<tbody>
<tr>
......
......@@ -36,30 +36,6 @@ function print(string) {
output.innerText += string + "\n";
}
function tre_kontoer() {
output.innerText = "";
let lise = new barnekonto(12345678, "Lise Jensen");
let kari = new konto(24681632, "Kari Hansen", 895);
let petter = new konto(16777216, "Petter Olsen");
kari.uttak(300);
print(`10:30: ${kari.infoLite()}`);
lise.innskudd(4000);
print(`11:00: ${lise.infoLite()}`);
petter.innskudd(3000);
print(`11:00: ${petter.infoLite()}`);
kari.uttak(250);
petter.innskudd(250);
print(`12:15: ${kari.infoLite()}`);
print(`12:15: ${petter.infoLite()}`);
kari.uttak(800);
print(`17:30: ${kari.infoLite()}`);
}
function tre_kontoer_input() {
output.innerText = "";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment