Coffee on the Keyboard
  • Home
  • jamessocol.com
Subscribe

oop

A collection of 1 post
Code

JavaScript: Private Static Members, Part 1

A little while ago [https://coffeeonthekeyboard.com/private-variables-in-javascript-177/] I talked about creating private variables and methods in JavaScript. This works, but is not necessarily efficient: each instance of the class creates new copies of the members. While that may be exactly what you want for instance variables (think of partNum
Apr 28, 2009 — 2 min read
Coffee on the Keyboard © 2022
Powered by Ghost