People uses “assert” and “tostring” in their coding, but I don’t understand what both instances function with.
tostring
converts its argument to a string.
=tostring(2) == "2"
assert
is used for asserting that the argument given to it is truthy, otherwise it will throw an exception which is the second argument.
assert(false, "oh no argument is falsey!!")
Assert also returns both its arguments
=assert(true, "lol") --> true lol
6 Likes