angrax

Ejemplo freeze

May 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. var tipoPreguntaEnum = {
  3.     SeleccionMultiple: { value: 1, description: "Seleccion Multiple" },
  4.     SeleccionSimple: { value: 2, description: "Seleccion Simple" },
  5.     Likert: { value: 3, description: "Likert" },
  6.     Libre: { value: 4, description: "Libre" },
  7.     VerdaderoYFalso: { value: 5, description: "Verdadero y Falso" }
  8. };
  9.  
  10.  
  11. var tipoTextoEnum = {
  12.     Jefe: { value: 1, description: "Colaborador" },
  13.     Colaborador: { value: 2, description: "Jefe" }
  14. };
  15.  
  16. var tipoEncuestaEnum = {
  17.     Colaborador: { value: 1, description: "Colaborador" },
  18.     Jefe: { value: 2, description: "Jefatura" }
  19. };
  20.  
  21. Object.freeze(tipoPreguntaEnum);
  22. Object.freeze(tipoTextoEnum);
  23. Object.freeze(tipoEncuestaEnum);
Add Comment
Please, Sign In to add comment