You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zahir Hadi Athallah edited this page Jul 10, 2022
·
5 revisions
Enums
// Examples : enumtheData("LOW","MEDIUM","HIGH")// the default value of the enums is 1// you can also add the value for the enums// Examples : enumtheData({LOW: 2},{MEDIUM: 3},{HIGH: 4})
// readonly data is useful for creating data that can only be retrieved, but cannot be changed// Examples : readonlymyData(name: "Zahir")myData.prop="Jimmy"// Throws an Error
Define
// Define is useful for define a object with Advanced Options// Examples :
define myData: myObj(readonly: false,value: "Zahir",enums: false,config: true)