JavaScript

Hungarian notation

Prefix Explanation Example
b
Boolean value bForTouchscreen
c, n
Count of some number of items cElements, nTags
a, arr
Array of items aNames, asNames
s
String sFirstName
i

Index into an array

aNames[iName]
r, c
Row or Column of a table or database cAddress
g_, m_
Scope level: global, member var g_sInstitutionName

from Lynda.com course "Practical and Effective JavaScript" Lesson 1 "Writing Better JavaScript Code", first video "Writing better code" by Joe Marini

ActionScript & JavaScript

Conventions for ActionScript (v. 3) coding/naming conventions and Flash naming conventions; most also apply to JavaScript

Event Handlers