html - Simple javascript print -


now i'm facing other issue. how make function skaic take obects properties, "min" "a", "sms" "b", "inter" "c", , d,e,f user input?

var omni1 = {         min:100,         sms:300,         inter:500         };     var omni2 = {         min:300,         sms:350,         inter:1000         };     var omni3 = {         min:60,         sms:100,         inter:3000         };     var bite1 = {         min: 1000,         sms: 1000,         inter: 1000     };     var bite2 = {         min: 1000,         sms: 50,         inter: 100     };     var bite3 = {         min: 50,         sms: 1000,         inter: 50     };     var tele1 = {         min: 450,         sms: 250,         inter: 300     };     var tele2 = {         min: 250,         sms: 500,         inter: 650     };     var tele3 = {         min: 4000,         sms: 3000,         inter: 4000     };       function skaic(a, b, c, d, e, f) {         return math.sqrt(((a - d)*(a - d) + (b - e)*(b - e) + (c - f)*(c - f)));                     };   

function find best solution befitting users needs. objects mobile plans of providers, user should input needs, , application should found, 1 closest user needs.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -