In the examples below, temporary UDFs are created but this just makes testing and development easier.
CREATE TEMP FUNCTION booleanExample()
LANGUAGE js AS r"""
SELECT booleanExample() AS result;
Next a UDF…