API Docs for: 1.0.0
Show:

Window Class

Defined in: default.js:5
Module: Intro2JavaScript

Global functions and properties.

Item Index

Methods

Methods

d2h

(
  • d
)
Mixed static

Defined in default.js:10

Converts decimal number to hexadecimal string.

Parameters:

  • d Int

Returns:

Mixed: if d is a number then return hexadecimal string else return d

getEl

(
  • id
)
HTMLElement static

Defined in default.js:22

Wrapper for document.getElementById().

Parameters:

Returns:

HTMLElement: If the element exists then reference to it else null.

h2d

(
  • h
)
Mixed static

Defined in default.js:45

Converts hexadecimal string to decimal number.

Parameters:

Returns:

Mixed: if h can be parsed to int then return h as decimal int else return h

isBlank

(
  • value
)
Boolean static

Defined in default.js:59

Tests string variable for content.

Parameters:

Returns:

Boolean:

isNumeric

(
  • value
)
Boolean static

Defined in default.js:71

Tests whether string value is completely numeric (decimal: "14000" == true; "14,000" == false).

Parameters:

Returns:

Boolean: