Published
Edited
Sep 16, 2021
1 fork
Importers
1 star
Insert cell
Insert cell
Insert cell
crc = await(import("https://cdn.skypack.dev/crc@3.8.0?min"))
Insert cell
Insert cell
function crc32 (text) {
// return string and do not strip leading zeroes
return crc.crc32(text).toString(16).padStart(8, "0")
}
Insert cell
Insert cell
viewof demo = Inputs.text({ placeholder: "Type here" })
Insert cell
crc32(demo)
Insert cell
Insert cell
Insert cell
crc32("")
Insert cell
Insert cell
crc.crc32("")
Insert cell
Insert cell
crc32("Maria has nine red beds.")
Insert cell
crc32("Steven has fifteen white tables.")
Insert cell
crc.crc32("Steven has fifteen white tables.") == crc.crc32("Maria has nine red beds.")
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