Public
Edited
Feb 5, 2024
Insert cell
// Convert a decimal number to a base-36 string
decimalToBase36 = (num) => {
return num.toString(36).toUpperCase();
}

// Convert a base-36 string back to a decimal number
base36ToDecimal = (str) => {
return parseInt(str, 36);
}

Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more