Freiver Freiver - 1 year ago 76
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download