For the complete documentation index, see llms.txt. This page is also available as Markdown.

number.append

⚠️ Not a number method. .append() works only on strings. See strings/.append.md.

Description

Treats the number as a string, appends val, and returns the resulting string.

Parameters

  • val - value to append (converted to string first).

Usage

log 42.append("px") // "42px"

Last updated