Skip to content
Snippets Groups Projects
Commit 393a9f0f authored by Fawx's avatar Fawx
Browse files

upt5

parent d8c3de4a
No related branches found
No related tags found
No related merge requests found
......@@ -63,9 +63,19 @@ function exc1() {
}
function exc2a() {
Array.reduce = employees[0].salary
employees.sort((a, b) => parseFloat(a.salary) - parseFloat(b.salary));
//let highi = employees[0].salary
//let loghi = employees[1].salary
//if(highi >= loghi) {
//}
console.log(employees)
}
function exc2b() {
return console.error("no");
console.log(highi)
}
function exc3(cols, rows) {
......@@ -76,3 +86,13 @@ function exc3(cols, rows) {
document.getElementById("exc3").innerHTML = ddarr;
console.log(ddarr)
}
function exc4() {
return console.error("non existant");
}
function exc5() {
return console.error("non existant");
}
\ No newline at end of file
......@@ -68,7 +68,7 @@
<h5 id="exc2">
<b>2</b>
</h5>
<button onclick="exc2a()" class="w3-button btn">a</button><button onclick="exc2c()" class="w3-button btn">b</button>
<button onclick="exc2a()" class="w3-button btn">a</button><button onclick="exc2b()" class="w3-button btn">b</button>
</div>
<div class="w3-container w3-white cori">
<h1 class="">exc3</h1>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment