JSFiddle - React, Tailwind, and code Playground

JavaScript

// your code
var testfunction = function() {console.log('proc func')};
var array = [];

// problem step
array.push(testfunction());

// is testfunction in the array now?

// another problem step
if (array[0] === testfunction()) {
    console.log("success?");
}

console.log(typeof array[0], typeof testfunction());