From 393a9f0fcaf62f08b46f356f1034d97c235f9a45 Mon Sep 17 00:00:00 2001
From: Fawx <admiral.walsh@pm.me>
Date: Thu, 16 Apr 2020 14:19:47 +0300
Subject: [PATCH] upt5

---
 coco.js    | 24 ++++++++++++++++++++++--
 index.html |  2 +-
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/coco.js b/coco.js
index 9f1adab..4f16f65 100644
--- a/coco.js
+++ b/coco.js
@@ -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(highi)
+    console.log(employees)
+}
+
+function exc2b() {
+    return console.error("no");
+    
 }
 
 function exc3(cols, rows) {
@@ -75,4 +85,14 @@ 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
diff --git a/index.html b/index.html
index 9542210..9d89696 100644
--- a/index.html
+++ b/index.html
@@ -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>
-- 
GitLab