Coffee on the Keyboard
  • Home
  • jamessocol.com
Sign in Subscribe

oop

A collection of 1 post
Code

JavaScript: Private Static Members, Part 1

A little while ago [https://www.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
28 Apr 2009 2 min read
Page 1 of 1
Coffee on the Keyboard © 2025
Powered by Ghost