I'm inserting a javascript function
var a= 23 & b=15
from javascript
But when I save and see in the database if the information is correct, only var appears. The bd is Oracle.
I used the replace
to exchange for other values, only that does not work for me since I need the function to have the correct body with the correct variables.
With this I exchange the values I entered from the front
funcIn = $('#funIn').val();
igual = funcIn.replace(/[=]/gi, "/@");
igual = igual.replace(/[&]/gi, "#@");
/*
Este sería el resultado en la base VAR SCORE /@ 0;
si inserto VAR SCORE=0; entonces lo que requiero es que si
inserto VAR A=23; Eso que aparezca en la base, ya que si el dato
lo envío tal y como lo agarro desde el front, se corta hasta
VAR A
*/
statUsr = $('#estadoIn').val();