IsaKiko / D3-visualising-data

Lesson plans for teaching the basics of HTML, CSS, SVG, JSON, and JS (primarily D3.js), in order to create browser-based data visualisations.
http://isakiko.github.io/D3-visualising-data/
Other
35 stars 35 forks source link

Using camelCase in javascript #13

Open twitwi opened 9 years ago

twitwi commented 9 years ago

The current javascript code uses underscores, which might be familiar for the learners if they come e.g. from a Python lesson.

My understanding is that javascript uses a camelCase naming convention. If the change is meaningful, cat_image would become catImage and so on.

I'm not sure this is a first priority though.

IsaKiko commented 9 years ago

Good point. I agree though, not the first priority, but leaving this open for later :) Thanks!