1. What is the equivalent of var.split() in JavaScript? I might have missed that. (In Python, that would split the value of var (if var is a string) into words.) 2. I know you can use different types of JavaScript and stuff using the script tag. Is there a way to add Python into a web page using a script tag?
10/29/2020 9:28:48 PM
Dustin 🇺🇸3 Answers
New Answer1) "hello world".split(" ") // returns [ "hello", "world" ] 2) idk, but ive heard a little about Brython, check it out.
2. I wrote the code that does right what you need a few days ago (not advertising): https://code.sololearn.com/Wq0mDain5UmV/?ref=app
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message