0

How i do for edit a variable of argument in a function

Hi, i need do a function that edit the variables of his arguments. Here i annexed a example: https://code.sololearn.com/W6TFr5HOWUBx/#html I need that x = 12 and y = 25. Thanks. PD: Sorry if i commeted a mistake, i am learning english. PD2: I need this function for this: function Convertir_Data(Data,Estado) { if(Data === ""){ Data = Nota; Data = parseFloat(Data); Estado = true; } else{ Data = parseFloat(Data); Estado = false; if (!(Data <= 5.0 && Data >= 0.0)){ throw new Error("Error, el valor ingresado no es vĂĄlido. Por favor revisa las condiciones de entrada de datos para solucionar este error."); } } }

21st Feb 2018, 5:05 PM
Emmanuel David Angarita Quintanilla
Emmanuel David Angarita Quintanilla - avatar
1 Answer
0
var x = 12; var y = 25;
13th Mar 2018, 6:32 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar