2_declarative_fields.js 740 B

12345678910111213141516171819202122232425
  1. var notebook = {
  2. brand: prompt('Enter a notebook brand'),
  3. type: prompt('Enter a notebook type'),
  4. model: prompt('Enter a notebook model'),
  5. ram: +prompt('Enter a notebook ram amount'),
  6. size: +prompt('Enter a notebook size'),
  7. weight: +prompt('Enter a notebook weight'),
  8. resolution: {
  9. width: +prompt('Enter a notebook resolution width'),
  10. height: +prompt('Enter a notebook resolution height'),
  11. },
  12. };
  13. var phone = {
  14. brand: prompt('Enter phone brand'),
  15. model: prompt('Enter phone model'),
  16. ram: +prompt('Enter phone ram amount'),
  17. color: prompt('Enter phone color'),
  18. };
  19. var person = {
  20. name: prompt('Enter person name'),
  21. surname: prompt('Enter person surname'),
  22. married: confirm('Does person married?'),
  23. }