SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
Create a file called grocery.ts. It should have a definition of a class with the obvious name Grocery
. The class should have some basic attributes such as name, quantity, etc. Feel free to add any
other attributes you think will be necessary.
Add few grocery items to an array of groceries, such as milk, bread, and eggs, along with some
quantities (i.e. 3, 6, 11). Display these grocery items as HTML output.
The output of this assignment will be grocery.ts and groceries.html displaying the output.

Contenu connexe

Plus de yuvarajm76

Cul de las siguientes afirmaciones sobre la hepatitis B V.pdf
Cul de las siguientes afirmaciones sobre la hepatitis B V.pdfCul de las siguientes afirmaciones sobre la hepatitis B V.pdf
Cul de las siguientes afirmaciones sobre la hepatitis B V.pdfyuvarajm76
 
Cul de las siguientes afirmaciones sobre la especiacin al.pdf
Cul de las siguientes afirmaciones sobre la especiacin al.pdfCul de las siguientes afirmaciones sobre la especiacin al.pdf
Cul de las siguientes afirmaciones sobre la especiacin al.pdfyuvarajm76
 
Cul de las siguientes afirmaciones sobre la gemacin de ve.pdf
Cul de las siguientes afirmaciones sobre la gemacin de ve.pdfCul de las siguientes afirmaciones sobre la gemacin de ve.pdf
Cul de las siguientes afirmaciones sobre la gemacin de ve.pdfyuvarajm76
 
Cul de las siguientes afirmaciones representa la fotosnte.pdf
Cul de las siguientes afirmaciones representa la fotosnte.pdfCul de las siguientes afirmaciones representa la fotosnte.pdf
Cul de las siguientes afirmaciones representa la fotosnte.pdfyuvarajm76
 
Cul de las siguientes afirmaciones sobre el efecto del pH .pdf
Cul de las siguientes afirmaciones sobre el efecto del pH .pdfCul de las siguientes afirmaciones sobre el efecto del pH .pdf
Cul de las siguientes afirmaciones sobre el efecto del pH .pdfyuvarajm76
 
Cuando no conocemos las desviaciones estndar de la poblaci.pdf
Cuando no conocemos las desviaciones estndar de la poblaci.pdfCuando no conocemos las desviaciones estndar de la poblaci.pdf
Cuando no conocemos las desviaciones estndar de la poblaci.pdfyuvarajm76
 
Cul de estos cidos grasos de 18 carbonos tendra el menor.pdf
Cul de estos cidos grasos de 18 carbonos tendra el menor.pdfCul de estos cidos grasos de 18 carbonos tendra el menor.pdf
Cul de estos cidos grasos de 18 carbonos tendra el menor.pdfyuvarajm76
 
Cul de estos componentes proporciona redundancia de datos .pdf
Cul de estos componentes proporciona redundancia de datos .pdfCul de estos componentes proporciona redundancia de datos .pdf
Cul de estos componentes proporciona redundancia de datos .pdfyuvarajm76
 
Cuestionario de comunicaciones comerciales 15 La declara.pdf
Cuestionario de comunicaciones comerciales   15   La declara.pdfCuestionario de comunicaciones comerciales   15   La declara.pdf
Cuestionario de comunicaciones comerciales 15 La declara.pdfyuvarajm76
 
Cuanto ms relacionadas estn dos especies ms similares so.pdf
Cuanto ms relacionadas estn dos especies ms similares so.pdfCuanto ms relacionadas estn dos especies ms similares so.pdf
Cuanto ms relacionadas estn dos especies ms similares so.pdfyuvarajm76
 
Critical values for quick reference during this activity In.pdf
Critical values for quick reference during this activity In.pdfCritical values for quick reference during this activity In.pdf
Critical values for quick reference during this activity In.pdfyuvarajm76
 
Cul de estas texturas ayuda al gelogo a determinar si una.pdf
Cul de estas texturas ayuda al gelogo a determinar si una.pdfCul de estas texturas ayuda al gelogo a determinar si una.pdf
Cul de estas texturas ayuda al gelogo a determinar si una.pdfyuvarajm76
 
Cuestionario de prctica de OPS 2 Los beneficios de la agr.pdf
Cuestionario de prctica de OPS  2 Los beneficios de la agr.pdfCuestionario de prctica de OPS  2 Los beneficios de la agr.pdf
Cuestionario de prctica de OPS 2 Los beneficios de la agr.pdfyuvarajm76
 
Cuando un gran nmero de especies a veces taxones principal.pdf
Cuando un gran nmero de especies a veces taxones principal.pdfCuando un gran nmero de especies a veces taxones principal.pdf
Cuando un gran nmero de especies a veces taxones principal.pdfyuvarajm76
 
Cub Foods grocery stores have more than one location in Mank.pdf
Cub Foods grocery stores have more than one location in Mank.pdfCub Foods grocery stores have more than one location in Mank.pdf
Cub Foods grocery stores have more than one location in Mank.pdfyuvarajm76
 
Creeping commitment refers to an approach to systems develop.pdf
Creeping commitment refers to an approach to systems develop.pdfCreeping commitment refers to an approach to systems develop.pdf
Creeping commitment refers to an approach to systems develop.pdfyuvarajm76
 
Cuckoo Egg LengthsCuckoos lay their eggs in the nests of .pdf
Cuckoo Egg LengthsCuckoos lay their eggs in the nests of .pdfCuckoo Egg LengthsCuckoos lay their eggs in the nests of .pdf
Cuckoo Egg LengthsCuckoos lay their eggs in the nests of .pdfyuvarajm76
 
Cuando se transfiere un grupo fosfato del ATP el transporte.pdf
Cuando se transfiere un grupo fosfato del ATP el transporte.pdfCuando se transfiere un grupo fosfato del ATP el transporte.pdf
Cuando se transfiere un grupo fosfato del ATP el transporte.pdfyuvarajm76
 
Cuando Noruega Islandia Liechtenstein y Suiza se unieron a.pdf
Cuando Noruega Islandia Liechtenstein y Suiza se unieron a.pdfCuando Noruega Islandia Liechtenstein y Suiza se unieron a.pdf
Cuando Noruega Islandia Liechtenstein y Suiza se unieron a.pdfyuvarajm76
 
Cuando las empresas son contratadas por otras empresas para .pdf
Cuando las empresas son contratadas por otras empresas para .pdfCuando las empresas son contratadas por otras empresas para .pdf
Cuando las empresas son contratadas por otras empresas para .pdfyuvarajm76
 

Plus de yuvarajm76 (20)

Cul de las siguientes afirmaciones sobre la hepatitis B V.pdf
Cul de las siguientes afirmaciones sobre la hepatitis B V.pdfCul de las siguientes afirmaciones sobre la hepatitis B V.pdf
Cul de las siguientes afirmaciones sobre la hepatitis B V.pdf
 
Cul de las siguientes afirmaciones sobre la especiacin al.pdf
Cul de las siguientes afirmaciones sobre la especiacin al.pdfCul de las siguientes afirmaciones sobre la especiacin al.pdf
Cul de las siguientes afirmaciones sobre la especiacin al.pdf
 
Cul de las siguientes afirmaciones sobre la gemacin de ve.pdf
Cul de las siguientes afirmaciones sobre la gemacin de ve.pdfCul de las siguientes afirmaciones sobre la gemacin de ve.pdf
Cul de las siguientes afirmaciones sobre la gemacin de ve.pdf
 
Cul de las siguientes afirmaciones representa la fotosnte.pdf
Cul de las siguientes afirmaciones representa la fotosnte.pdfCul de las siguientes afirmaciones representa la fotosnte.pdf
Cul de las siguientes afirmaciones representa la fotosnte.pdf
 
Cul de las siguientes afirmaciones sobre el efecto del pH .pdf
Cul de las siguientes afirmaciones sobre el efecto del pH .pdfCul de las siguientes afirmaciones sobre el efecto del pH .pdf
Cul de las siguientes afirmaciones sobre el efecto del pH .pdf
 
Cuando no conocemos las desviaciones estndar de la poblaci.pdf
Cuando no conocemos las desviaciones estndar de la poblaci.pdfCuando no conocemos las desviaciones estndar de la poblaci.pdf
Cuando no conocemos las desviaciones estndar de la poblaci.pdf
 
Cul de estos cidos grasos de 18 carbonos tendra el menor.pdf
Cul de estos cidos grasos de 18 carbonos tendra el menor.pdfCul de estos cidos grasos de 18 carbonos tendra el menor.pdf
Cul de estos cidos grasos de 18 carbonos tendra el menor.pdf
 
Cul de estos componentes proporciona redundancia de datos .pdf
Cul de estos componentes proporciona redundancia de datos .pdfCul de estos componentes proporciona redundancia de datos .pdf
Cul de estos componentes proporciona redundancia de datos .pdf
 
Cuestionario de comunicaciones comerciales 15 La declara.pdf
Cuestionario de comunicaciones comerciales   15   La declara.pdfCuestionario de comunicaciones comerciales   15   La declara.pdf
Cuestionario de comunicaciones comerciales 15 La declara.pdf
 
Cuanto ms relacionadas estn dos especies ms similares so.pdf
Cuanto ms relacionadas estn dos especies ms similares so.pdfCuanto ms relacionadas estn dos especies ms similares so.pdf
Cuanto ms relacionadas estn dos especies ms similares so.pdf
 
Critical values for quick reference during this activity In.pdf
Critical values for quick reference during this activity In.pdfCritical values for quick reference during this activity In.pdf
Critical values for quick reference during this activity In.pdf
 
Cul de estas texturas ayuda al gelogo a determinar si una.pdf
Cul de estas texturas ayuda al gelogo a determinar si una.pdfCul de estas texturas ayuda al gelogo a determinar si una.pdf
Cul de estas texturas ayuda al gelogo a determinar si una.pdf
 
Cuestionario de prctica de OPS 2 Los beneficios de la agr.pdf
Cuestionario de prctica de OPS  2 Los beneficios de la agr.pdfCuestionario de prctica de OPS  2 Los beneficios de la agr.pdf
Cuestionario de prctica de OPS 2 Los beneficios de la agr.pdf
 
Cuando un gran nmero de especies a veces taxones principal.pdf
Cuando un gran nmero de especies a veces taxones principal.pdfCuando un gran nmero de especies a veces taxones principal.pdf
Cuando un gran nmero de especies a veces taxones principal.pdf
 
Cub Foods grocery stores have more than one location in Mank.pdf
Cub Foods grocery stores have more than one location in Mank.pdfCub Foods grocery stores have more than one location in Mank.pdf
Cub Foods grocery stores have more than one location in Mank.pdf
 
Creeping commitment refers to an approach to systems develop.pdf
Creeping commitment refers to an approach to systems develop.pdfCreeping commitment refers to an approach to systems develop.pdf
Creeping commitment refers to an approach to systems develop.pdf
 
Cuckoo Egg LengthsCuckoos lay their eggs in the nests of .pdf
Cuckoo Egg LengthsCuckoos lay their eggs in the nests of .pdfCuckoo Egg LengthsCuckoos lay their eggs in the nests of .pdf
Cuckoo Egg LengthsCuckoos lay their eggs in the nests of .pdf
 
Cuando se transfiere un grupo fosfato del ATP el transporte.pdf
Cuando se transfiere un grupo fosfato del ATP el transporte.pdfCuando se transfiere un grupo fosfato del ATP el transporte.pdf
Cuando se transfiere un grupo fosfato del ATP el transporte.pdf
 
Cuando Noruega Islandia Liechtenstein y Suiza se unieron a.pdf
Cuando Noruega Islandia Liechtenstein y Suiza se unieron a.pdfCuando Noruega Islandia Liechtenstein y Suiza se unieron a.pdf
Cuando Noruega Islandia Liechtenstein y Suiza se unieron a.pdf
 
Cuando las empresas son contratadas por otras empresas para .pdf
Cuando las empresas son contratadas por otras empresas para .pdfCuando las empresas son contratadas por otras empresas para .pdf
Cuando las empresas son contratadas por otras empresas para .pdf
 

Dernier

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 

Dernier (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 

Create a file called groceryts It should have a definition.pdf

  • 1. Create a file called grocery.ts. It should have a definition of a class with the obvious name Grocery . The class should have some basic attributes such as name, quantity, etc. Feel free to add any other attributes you think will be necessary. Add few grocery items to an array of groceries, such as milk, bread, and eggs, along with some quantities (i.e. 3, 6, 11). Display these grocery items as HTML output. The output of this assignment will be grocery.ts and groceries.html displaying the output.