Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. //FUNCIONES
  2. function consultarSaldo(nombre){
  3.  
  4.  
  5. var user = prompt('insertar usuario');
  6. var password = prompt('insertar contraseña')
  7.  
  8. if(si el nombre y el usuario coinciden){
  9.  
  10. }
  11. else{
  12. console.info("usuario incorrecto")
  13. }
  14.  
  15. }
  16.  
  17. consultarSaldo();
  18.  
  19.  
  20.  
  21. var maquina = {
  22. darDeAlta: function(){},
  23. darDeABaja: function(){},
  24. darPuntos: function(){},
  25. restarPuntos: function(){},
  26. resetPuntos: function(){},
  27. sumarStock: function(){},
  28. restarStock: function(){},
  29.  
  30. }
  31.  
  32. var products =[
  33. {
  34. nombre:'barritas',
  35. stock:10
  36. },
  37. {
  38. nombre:'zumo',
  39. stock:5
  40. },
  41. {
  42. nombre:'galletas',
  43. stock:15
  44. }
  45. ];
  46.  
  47. var clientes =[
  48. {
  49. nombre: 'juan',
  50. usuario: 'juan',
  51. 'contrasena':7,
  52. usuario:'normal',
  53. Presupuesto:500
  54. },
  55. {
  56. nombre: 'juana',
  57. usuario: 'juana',
  58. 'contraseña':'juana1',
  59. Tusuario:'normal',
  60. Presupuesto:0
  61. },
  62. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement