Freiver Freiver - 1 year ago 55
Javascript Question

Java Script function does not work

var Structure[undefined]
function run{

function setStructure(structure){


function House(){

Why is the return of House() function not in Structure[0]?
It is for a Minecraft PE mod.

Answer Source

I suppose you intended this:

function run{
    Structure[0]() // <--- notice the parentheses.

Without the parentheses, the function run does not do anything. It just references the function, without invoking it.