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

How to learn Javascript?
I would say, https://developer.mozilla.org/en-US/docs/Learn/JavaScript is the best place to learn if you want real good knowledge in Javascript. Have a little bit patience and put some effort in learning...
Ramya
What is the best way to learn JavaScript?
Learn Java Script Basics Learn OOPS and Design pattern in JavaScript Learn Jquery , DOM , JSON etc. Try Framework like ReactJS / AngularJS Refer to online tutorial or get fast track training...
Umamahesh
0 0
5
How Java is different from Java script?
Java is server side language is used to make application. Java is need to compile. The end user can not see the code of java it is secured. But Javascript is script language is a open source can be viewed by end user in browser.
Samadhan
How to start Learning Javascript, Jquery and Angular
Very easy, your requirement in advanced client side technologies, you can get this course every where
Sandeep
Want to learn javascript jquery and angular with live demo
Yes you can join me, i will provide you teaching with real life example,
Sandeep
0 0
7

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

Ask a Question

Related Lessons

Javascript basic Interview Questions
Check below logical operators var a = false && 'Cat'; false var b = 'Cat' && 'Dog'; dog var c = 'Cat' || 'Dog'; cat var d = !true; false var e = !false; false what are...

NgModules vs. JavaScript modules (Angular 2)
The NgModule — a class decorated with @NgModule Decorator — is a fundamental feature of Angular. JavaScript also has its own module system for managing collections of JavaScript objects. It's...

Java Interview Questions & Answers
Java Interview Questions have been designed especially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Java Programming Language. As per my...

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

Web Technology Tutorial
Web Technology has 2 category Front End (HTML,CSS,JS Etc) Back End/Server Side (PHP,JSP,ASP,ROR Etc) Front End technologies are - HTML, CSS, Bootstrap, Javascript, jQuery etc. Using front end...

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