How can I learn JavaScript if I have been a C++ developer all my life?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

IT Professional Trainer with 15 years of experience in IT Industry

Start with hello world. Use Node to run your JavaScript programs. Ideally, use Jasmine to write test harnesses. Here's a heads-up: It's not OO like you know itIt has no private keyword: you use function closures to do thisThere are no classes, except in ES6. They are not totally the same as C++ classesThe...
read more
Start with hello world. Use Node to run your JavaScript programs. Ideally, use Jasmine to write test harnesses. Here's a heads-up: It's not OO like you know itIt has no private keyword: you use function closures to do thisThere are no classes, except in ES6. They are not totally the same as C++ classesThe 'this' pointer can be reassigned. It has different rules to those in C++Variables declared with var do not have block scope like in C++, and their type can be changed at willType coercion rules are woolly== tests for 'roughly equals' You need === for exact checksnull, undefined, zero and NaN differ in behaviourExceptions are untyped. There are no destructorsIt's memory managed, new does not need deletedelete exists but is not the same as in C++There are no collection classes.There are a lot of callbacksFunctions are JavaScript objects, and this is really good. Functions start a closure which is a unit of scope and encapsulationThere are three ways to make an objectObjects have prototypes, and inheritance is done that wayThere are no interfaces. You call methods and they either work or fail read less
Comments

JavaScript is really easy you just need to have a look at the syntax and I am sure you understand it if you have good hands in C++. Even popular runtime environment like node js uses C++ as the core.
Comments

Related Questions

Which skills do i require to be an better ui developer?

Mainly HTML, CSS, JavaScript and Advance need Javascript Framework like AngularJS, Angular, Ember JS, React JS and so and so.
Soumya Ranjan
Is it worth learning Node.js? I feel like I should learn TypeScript as well.
Yes, both are good, TypeScript will have bright future
Shubham
0 0
5
Should I learn Python or JavaScript as a newbie?
Python is different from javascript. I prefer you go with python as it is in boom now.
Manisha
0 0
6
x eskor plus two x plus one
what is the question? can't understand the meaning.
Ankur
0 0
8

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Advantage of Node.js over Angularjs
i. Nodejs helps a user to develop scalable network applications. It delivers efficiency along with with event-driven, non-blocking I/O model, which has been proved ideal for real-time data-intensive applications....

Beginner JavaScript
1. Javascript is a programming language that adds interactivity to your website. 2. JavaScript is a programming language that allows you to implement complex things on web pages. 3. Javascript...

String Comparison In Javascript
String Comparison in javascript: Let us learn how two strings are compared in javascript Assume you have two strings: "ant" and "ele" Case 1: alert("ant" < "ele" ); will give the result as true...
G

JavaScript Arrow Function
Javascript Arrow Functions : JavaScript ES6 is a type or version which let us provide a way to write javascript syntax in a better way. ES6 version is having a feature or new method to use functions...
A

Abhay

0 1
0

Bootstrap grid system
What is a Grid? As put by wikepedia − In graphic design, a grid is a structure (usually two-dimensional) made up of a series of intersecting straight (vertical, horizontal) lines used to structure...

Recommended Articles

Here are the top 6 must have skills for every Web Designer : Technical Skills Web designers undoubtedly require very strong technical skills. They must have hands on using Web designing software and tools, such as Adobe Dreamweaver, Fireworks, Photoshop, Flash etc. In addition to the knowledge of design...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Looking for Java Script Training classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you