Is it possible somehow to use javascript code inside C++? For example I have some js library and want to use some it's methods in my C++ project (I know about emscripten but it looks like I have to build C++ code with emcc
).
Asked
Active
Viewed 72 times
-2

lfk
- 57
- 7
1 Answers
2
Yes it is possible that you can run the javascript in your c++ code but you need a javascript engine like V8 Maybe this will help you a lot.

Ali
- 78
- 1
- 7
-
You could add explaining, how _emscripten_ is a different thing, sort of opposite to what is asked (because it is mentioned in the question and even tagged there). – hyde Jan 12 '23 at 05:52