'Uncaught ReferenceError: formData is not defined

i initialized form data as you can see but i get undefined formData() error in line 2

 $("#createUser").click(function () {
var form = new formData();
form.append("userName", $("#userName").val());
form.append("password", $("#password").val());
form.append("userImage", $("#userImage")[0].files[0]);


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source