DEV Community

Functional Javascript
Functional Javascript

Posted on • Updated on

Popular Abbreviations in Software Development

JavaScript Abbreviations


JS
JavaScript


app
application


f
final
def: the final variable that will be returned from a func


arg
argument


param
parameter


arr
array


obj
object


objs
arr of obj


num
number


nums
arr of num


str
string


strs
arr of str


c
char
def: a single str character


func
function
note: as opposed to a method (i.e. a member of a Class)


nil
type: null | undefined


a
arr


elem
element of an arr


n
num


s
str


o
obj


k
keyName
type: str
def: the key part of a key-value pair


v
the value part of a key-value pair


v (2)
a variable of unknown type or of two or more possible types
type: any or union of types


n
needle
type: str or regex


h
haystack
type: str


ref
reference type
type: obj, arr


mut
mutate a ref type


dir
directory


recur
recursion


cb
callback func


db
database


coll
collection
def: used for noSql dbs like MongoDB


doc
document
def: an obj or key-value pair that represents a record in a noSql db


json
JavaScript Object Notation


regex
Regular Expression
type: RegExp


util
utility
utility file
def: a file with two or more utility funcs


POJ or poj
plain old javascript
type: obj


algor
algorithm


dfs
depth-first search


bfs
breadth-first search


seq
sequence
def: seq of nums, or seq of chars


h (2)
hashtable
type: obj


perf
performance


uniq
unique


dup
duplicate


len
length
def: char count in str, or elem count in arr


cnt
count
def: the number of items in an arr or set


sig
signature


p
pointer
note: other pointer variables include: i, j, k, left, right


Top comments (0)