Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resources for C++ programmer to learn JS [closed]

Tags:

I am proficient in C++, I dont know Java Script and want to learn JS, What should be the way/process for me? I know basic html, CSS.

like image 368
SunnyShah Avatar asked Nov 25 '10 14:11

SunnyShah


People also ask

Can I learn JavaScript after C?

If your intent is to learn Javascript, start with Javascript now. The C language brings you a lot of general knowledge, but for Web programming it's better to start with HTML and Javascript. You need to answer yourself this question: 'how much time I can spend before be able to make money with programming?'

Do I need to know C to learn JavaScript?

No. While it is very useful to know some amount of C in order to be able to understand how computers work, you do not need to learn it to be good at JavaScript. You might want to learn it eventually, for example after you finish your first JavaScript project, it might be good to learn something new and explore.

Is JS harder than C?

Much of the boilerplate code in C++/C is stripped away in JavaScript. Allowing you to write code faster and more easily. Even despite readability, ultimately C++ is also harder than JavaScript to learn because there are many more aspects of the language that you need to master.


2 Answers

Check out the one and only JavaScript Guide from MDC:
https://developer.mozilla.org/en/docs/Web/JavaScript/Guide

Besides that, forget everything you know about C++ it won't help you in any way. JavaScript is a completely different beast on its own.

It will take a lot of type to learn all the quirks of the language and the Browsers it runs in, if you want to do server side JavaScript check out Node.js, but be advised, learn a lot about JS before doing that.

like image 101
Ivo Wetzel Avatar answered Sep 17 '22 16:09

Ivo Wetzel


An answer that takes things in a different angle: Have you heard of Emscripten?

Emscripten is basically a C/C++ to Javascript converter. It allows you to write code in C/C++, compile it, and then convert your compiled bitcode to Javascript.

Clearly, this isn't aimed at teaching a C++ programmer to write Javascript, so it isn't a direct answer to this question. But it does allow him to create Javascript code, in a round-about sort of way.

Of course, he could always try using it a learning tool, by writing some C++ code and studying the converted Javascript. It might be helpful in simple cases, although I suspect it wouldn't be ideal code to learn from.

like image 38
Spudley Avatar answered Sep 21 '22 16:09

Spudley