Consider the following JavaScript UDF in Snowflake:
create or replace function PUBLIC.TEST(F FLOAT) returns VARIANT language JAVASCRIPT returns NU