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

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
What's the event loop?
In computer science, the event loop is a programming construct that waits for and dispatches events or messages in a program. It works by making a request to some internal or external "event provider"....
Spandana
0 0
5
x eskor plus two x plus one
what is the question? can't understand the meaning.
Ankur
0 0
8
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
How do I become better at JavaScript?
Go through JavaScript tutorials from w3schools.com site. They have good examples with description. Then learn some es6 and es7 syntax. You will be pro in JavaScript.
Pooja
0 0
5

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

Ask a Question

Related Lessons

What Is Mean Stack? Why Mean Stack Is Popular Now?
Mean Stack is standing for MongoDB, ExpressJS, AngularJS and NodeJS. These four javascript solutions create a high performing web application. Mainly JavaScript is the frontend language. It’s working...

Benefits of Design Patterns in Application Development
Application developments is a tedious job. Programmers write code and test it again and again to make sure their software works fine. So designing complex software is a hard nut to crack. Skilled programmers...

What is hoisting in Javascript?
As a matter of fact it is, javascript is an interpreted language and the javascript interpreter performs a lot of mystical stuff behind the scenes. Hoisting in JavaScript is certainly one of them. A quick...

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....

What Should I Learn in 2025 for Frontend or Web Technology?
If you're wondering what to focus on in 2025 to excel in frontend development, here's a concise guide: 1. React.js React remains one of the most in-demand technologies for building modern web applications....

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