Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert js to python online

>>> import js2py
>>> f = js2py.eval_js('function f(x) {return x + x}')
>>> f(2)
4
>>> f()
nan
>>> f(f)
function f(x) { [python code] }function f(x) { [python code] }
Source by piter.io #
 
PREVIOUS NEXT
Tagged: #convert #js #python #online
ADD COMMENT
Topic
Name
5+3 =