1.

Where To Use The Associate Array?

Answer»

I am going to EXPLAIN the associate array over the database table COLUMNS. A table have some columns and its type. i.e.

The empName as text type, empAge as number type and enpDOB as date type.

If we need to find the type of a COLUMN that time we can create the associate array. i.e.

VAR empDetailType = new Array();
empDetailType["empName"] = "ANil";
empDetailType["empAge"] = 30;
empDetailType["empDOB"] = "10/03/1984";
console.log("Find the emp age type :" + empDetailType["empAge"]);

I am going to explain the associate array over the database table columns. A table have some columns and its type. i.e.

The empName as text type, empAge as number type and enpDOB as date type.

If we need to find the type of a column that time we can create the associate array. i.e.

var empDetailType = new Array();
empDetailType["empName"] = "ANil";
empDetailType["empAge"] = 30;
empDetailType["empDOB"] = "10/03/1984";
console.log("Find the emp age type :" + empDetailType["empAge"]);



Discussion

No Comment Found