The eval method evaluates a string as code and returns the resulting object.
var (a, b) = (-5, 7) say eval 'abs(a * b)' # => 35 say abs(a * b) # => 35
Last updated 1 year ago