JavaScript Concepts
I started learning JS for a while and i cant understand some concepts. If are you learning JS and fell a little lost, check it out: http://bolinfest.com/javascript/misunderstood.html
Things like:
- JavaScript Objects are Associative Arrays whose Keys are Always Strings;
- There are Several Ways to Look Up a Value in an Object;
- Single-quoted Strings and Double-quoted Strings are Equivalent;
- There are Several Ways to Define an Object Literal;
- The "prototype" Property is Not the Prototype You are Looking For(better explanation i saw);
- The Syntax for Defining a Function is Significant;
- What "this" Refers to When a Function is Called;
- The "var" Keyword is Significant;
- Block Scope is Meaningless
Probably, you see this topics in other place but, to me, the way how is explained generated a lot of "A-ha" moments.
This link was revealed to me by the JavaScript Weekly, and this is another tip. Follow this weekly accessing http://javascriptweekly.com/
Written by Luiz Fernando de Souza Filho
Related protips
2 Responses
You should also check out http://bonsaiden.github.io/JavaScript-Garden/ , it's another collection of JavaScript's "confusing" parts.
I really like this type of content. Things like:
function Foo(){}
Foo.bar = 1;
Foo.bar; // 1
And this is what i`m talking about everything is a object in JavaScript.
Have a fresh tip? Share with Coderwall community!
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside