I have java class called Main.java
and javascript file called test.js
which include a var
var number = 5;
how can i access this variable with java code so i can make that value 10 for example ?
(note : I should not use the javascript file as text I want to access its vars as java)
Asked
Active
Viewed 24 times
0
-
What about https://stackoverflow.com/questions/6511556/javascript-parser-for-java? – Nico Haase Oct 16 '20 at 11:14