JavaScript Gotchas and Common Mistakes
4.5 (4 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
109 students enrolled
Wishlisted Wishlist

Please confirm that you want to add JavaScript Gotchas and Common Mistakes to your Wishlist.

Add to Wishlist

JavaScript Gotchas and Common Mistakes

Learn to avoid the most common and sometimes subtle JavaScript errors and write robust code.
4.5 (4 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
109 students enrolled
Created by Pierre Nallet
Last updated 3/2015
English
Curiosity Sale
Current price: $10 Original price: $25 Discount: 60% off
30-Day Money-Back Guarantee
Includes:
  • 1.5 hours on-demand video
  • 19 Articles
  • 1 Supplemental Resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Use callbacks and keep the current context
  • Avoid bugs in array manipulation (add, remove, iterate over items)
  • Choose when to use var and when not to
  • Validate numeric user input
  • Decide when to use null versus undefined
  • Handle missing parameters
  • Use tools to automatically detect JavaScript errors
View Curriculum
Requirements
  • You should already be familiar with the JavaScript syntax
  • You'll need a browser and a text editor (recommended editors are covered in section 1)
Description

Save time by avoiding common JavaScript mistakes

JavaScript is easy and popular. But JavaScript also lets you make costly mistakes! This course is tailored for beginner JavaScript developers who want to avoid errors even seasoned developers make! If you take this course, you will avoid bugs that would take hours or even days to catch.

Write robust code like a pro

This course covers over 20 JavaScript gotchas. Some are common and easy. But others are ignored even by professional JavaScript developers.

For each mistake, you will go through a straightforward, comprehensive and fun explanation of the problem and the solution. Each JavaScript gotcha presentation contains:

* Clear example of the error
* Live demo of the problem and the solution
* Prescriptive guidance
* Downloadable code samples and reference material

It's time to write robust JavaScript code and do it the right way. Let's get started!

Who is the target audience?
  • This course is meant for any JavaScript developer who wants to avoid common JavaScript errors. This is not an introduction to JavaScript but you'll need only minimal knowledge of JavaScript to benefit.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
42 Lectures
01:56:58
+
[Intro] Introduction and welcome
3 Lectures 03:43
+
[Syntax] Problematic Syntax
5 Lectures 08:03
Gotcha: A good return
03:38

Multi-line
1 question

Lab: return
00:14

Gotcha: Switch and break
03:28

switch
1 question

Lab: switch
00:11

Gotcha: Blocks
00:31
+
[Values] Trouble between numbers and strings
10 Lectures 25:17
Gotcha: The old parseInt()
06:16

parseInt()
3 questions

Lab: parseInt()
00:14

Gotcha: A bad date
02:22

date
2 questions

Lab: date
00:11

Gotcha: Number imprecision
03:22

Lab: number precision
00:10

Gotcha: Not a number is a number
06:19

NaN
3 questions

Lab: NaN
00:13

Gotcha: + doesn't add up
05:57

+
7 questions

Lab: +
00:11
+
Equal, null and undefined
5 Lectures 13:11
Gotcha: When equality changes things
03:03

Lab: = vs. ==
00:10

Gotcha: More equality is better
03:39

== vs ===
8 questions

Lab: == vs. ===
00:16

+
[Arrays] That Array is full of trouble
10 Lectures 20:07
Gotcha: forEach for everyone
02:54

array loops
2 questions

Lab: array loops
00:12

Gotcha: push your array
02:42

Array.length
3 questions

Lab: array.length
00:13

Gotcha: splice, don't delete
04:17

Lab: array delete
00:13

Gotcha: Sorting out Array.sort
05:24

Array.sort
2 questions

Lab: Array.sort
00:12

Gotcha: Arrays vs. dictionaries
03:40

arrays vs. dictionaries
2 questions

Lab: arrays vs. dictionaries
00:19
+
[Functions] Disfunctional Functions
2 Lectures 02:25
Gotcha: Missing the argument
02:12

Lab: missing parameters
00:13
+
[var] Variables gone awry
4 Lectures 11:24
Gotcha: var makes a difference
08:00

Lab: missing var
00:12

Gotcha: Global conflict
02:59

Lab: Global conflicts
00:13

Variables
1 question
+
[This] This is not what it seems
2 Lectures 09:51
Gotcha: this and that
09:39

this and that
1 question

Lab: this
00:12
+
[Conclusion] Thanks and goodbye!
1 Lecture 00:00
About the Instructor
Pierre Nallet
4.5 Average rating
4 Reviews
109 Students
1 Course
Software developer and trainer

Pierre is a software developer, course author and instructor. He spends his time writing software for clients and training software teams.

He has taught over 100 week-long training courses to software development teams throughout the world. He also authored training courses on WPF, WCF, security, MongoDB and Python classes.

He is an expert in .NET technology (C#, WPF, distributed systems, entity framework) and has delivered software for financial companies and healthcare startups.

He is also versed in web programming from ASP.NET backend with MongoDB storage to JavaScript and TypeScript front ends. Most recently, he was working on front end applications at Square.