Skip to content

Python ↔︎ JavaScript Bridges

Projects

Quickjs usage

from quickjs import Function

f = Function("f", """
    function adder(a, b) {
        return a + b;
    }

    function f(a, b) {
        return adder(a, b);
    }
    """)

assert f(1, 2) == 3

#js #javascript

Page last modified: 2024-11-19 09:38:33