Girls Who Javascript - Meetup 10

This meetup is in Bangalore for women who write Javascript or who wish to learn Javascript

Anupama

@anuhosad

Understanding Javascript Quirks

Submitted Oct 29, 2018

Understanding JS language features behind quirky behaviours

Outline

We have all come across the following quirky questions in quizzes or interviews:

var a = 20;
function foo() { 
   console.log(a)
   var a = 10;
   return function a() {}
}
// Outputs function a(){}

or

{} + [] = 0

[] + {} = "[object Object]"

{} + {} = NaN

({} + {}) = "[object Object][object Object]"

This talk is aimed at understanding the Javascript language features behind such behaviour such as hoisting, automatic type conversion for various operators, ToPrimitive internal algorithm to name a few.

Speaker bio

Hi, I am Anupama. I work as a UI engineer in Unbxd where I am part of the team that is building a new product

Slides

https://slides.com/anuhosad/understanding-javascript-quirks/#/

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

A meetup for women who write JavaScript (or who want to learn JavaScript). Come discuss your work, interests, and ideas! Look out this space for future meetups. Want to present some interesting idea or talk about informative web development concepts you learnt recently, submit your talk here https:… more