Skip to content

Passing JS new operator to Brython !? #2213

Closed Answered by PierreQuentel
BobSquarePants asked this question in Q&A
Discussion options

You must be logged in to vote

A search on "Javascript new" returns this page.

Brython documentation about using Javascript objects explains that Javascript constructors used in Brython code have a method jsobj.new(args) which is the equivalent of Javascript new jsobj(args).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BobSquarePants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants