how to save the values of different input fields into different variables and update them in Javascript?
I have the following function, in order to update values from four different input fields: UPDATED My Package Class is defined as followed: class Package{ constructor(packageID, type, weight,height,description){ this.packageID = packageID; this.type = type; this.weight = weight; this.height = height;…