Skip to content
ricardoboss edited this page Sep 13, 2023 · 1 revision

Invalid Argument Type Exception

Description

The argument type is not valid for the function.

Example:

function add = (number a, number b) {
	return a + b
}

add(1, "2")

Remediation

Check the argument types and ensure they are valid for the function.

  function add = (number a, number b) {
  	return a + b
  }

- add(1, "2")
+ add(1, 2)