Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Javascript be replaced with another language? [duplicate]

Possible Duplicate:
Alternatives to JavaScript

Hi there,

As there are many programming languages, and you have options, that which ever language you want to work on, like you if you use C# then you have option that you can use VB.NET or C++ etc further you we have Java which can replace C# or C# that can replace Java. So we have options.

My question is that as Javascript is used in client side scripting so is there any language which can replace Javascript?

Is there any language which we can use for the purposes for which we use java Script.

Your opinions and replies will be Highly appreciable.

like image 755
Learner Avatar asked Jul 02 '26 04:07

Learner


1 Answers

If you are referring to Javascript as used exlusively by web browsers:

  • Not directly, since the browsers all support javascript exclusively. But there are javascript libraries/frameworks you can use that allow you to build client-side applications in other languages.

    For example: http://www.haskell.org/haskellwiki/Haskell_in_web_browser

    Another option would simply be to use an x->javascript compiler where x is your language of choice.

If you are referring to Javascript as used everywhere else:

  • You can very easily use other languages for such tasks. Simply pick a language that you like, and use it instead!
like image 134
Cam Avatar answered Jul 03 '26 18:07

Cam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!