Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

using python with javascript

# PIP INSTALL JS2PY

import js2py
  
code_2 = "function f(x) {return x+x;}"
res_2 = js2py.eval_js(code_2)
  
print(res_2(5))
 
PREVIOUS NEXT
Tagged: #python #javascript
ADD COMMENT
Topic
Name
5+1 =