SlideShare a Scribd company logo
1 of 2
Programming Assignment: Building a functional program
Here are my errors:
Failed Test 1: Not logging the consoleStyler() variables
Failed Test 2: Not logging celebrateStyler() variables
Failed Test 3: Not calling consoleStyler() and celebrateStyler()
Failed Test 4: Not calling styleAndCelebrate()
This is my code:
// Task 1: Build a function-based console log message generator
function consoleStyler(message, style) {
console.log(`%c ${message}`, Object.entries(style).map(([key, value]) => ({[key]:
value})).reduce((a, b) => ({...a, ...b}), {}));
}
// Task 2: Build another console log message generator
function celebrateStyler(message) {
console.log(` ${message} `);
}
// Task 3: Call both the consoleStyler and the celebrateStyler functions
consoleStyler("Hello World!", { color: "blue", fontSize: "20px" });
celebrateStyler("Let's celebrate!");
// Task 4: Insert a congratulatory and custom message
function styleAndCelebrate(message) {
consoleStyler("Congratulations!", { color: "green", fontSize: "24px", fontWeight: "bold" });
celebrateStyler(` ${message} `);
}
// Task 5: Call styleAndCelebrate
styleAndCelebrate("You did it!");
Programming Assignment- Building a functional program  Here are my err.docx

More Related Content

What's hot

assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUEducation
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Bilal Amjad
 
Modern Block Cipher- Modern Symmetric-Key Cipher
Modern Block Cipher- Modern Symmetric-Key CipherModern Block Cipher- Modern Symmetric-Key Cipher
Modern Block Cipher- Modern Symmetric-Key CipherMahbubur Rahman
 
Microsoft Office: Practice Questions
Microsoft Office: Practice Questions Microsoft Office: Practice Questions
Microsoft Office: Practice Questions Makaha Rutendo
 
Chapter 03 arithmetic for computers
Chapter 03   arithmetic for computersChapter 03   arithmetic for computers
Chapter 03 arithmetic for computersBảo Hoang
 
ROYAL NOTES
ROYAL NOTESROYAL NOTES
ROYAL NOTESROYAL290
 
Unsigned and Signed fixed point Addition and subtraction
Unsigned and Signed  fixed point Addition and subtractionUnsigned and Signed  fixed point Addition and subtraction
Unsigned and Signed fixed point Addition and subtractionciyamala kushbu
 
Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computerKamal Acharya
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy methodhodcsencet
 
Floating point representation
Floating point representationFloating point representation
Floating point representationmissstevenson01
 

What's hot (20)

Gst in tally
Gst in tallyGst in tally
Gst in tally
 
Adder
Adder Adder
Adder
 
assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YU
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
Modern Block Cipher- Modern Symmetric-Key Cipher
Modern Block Cipher- Modern Symmetric-Key CipherModern Block Cipher- Modern Symmetric-Key Cipher
Modern Block Cipher- Modern Symmetric-Key Cipher
 
Unit 1 cd
Unit 1 cdUnit 1 cd
Unit 1 cd
 
Microsoft Office: Practice Questions
Microsoft Office: Practice Questions Microsoft Office: Practice Questions
Microsoft Office: Practice Questions
 
Number system
Number systemNumber system
Number system
 
Code generation
Code generationCode generation
Code generation
 
8086 assembly
8086 assembly8086 assembly
8086 assembly
 
Chapter 03 arithmetic for computers
Chapter 03   arithmetic for computersChapter 03   arithmetic for computers
Chapter 03 arithmetic for computers
 
Tally unit 4
Tally unit 4Tally unit 4
Tally unit 4
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
Randomized algorithms ver 1.0
Randomized algorithms ver 1.0Randomized algorithms ver 1.0
Randomized algorithms ver 1.0
 
ROYAL NOTES
ROYAL NOTESROYAL NOTES
ROYAL NOTES
 
Unsigned and Signed fixed point Addition and subtraction
Unsigned and Signed  fixed point Addition and subtractionUnsigned and Signed  fixed point Addition and subtraction
Unsigned and Signed fixed point Addition and subtraction
 
Assembler
AssemblerAssembler
Assembler
 
Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computer
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 

Similar to Programming Assignment- Building a functional program Here are my err.docx

Tdd for BT E2E test community
Tdd for BT E2E test communityTdd for BT E2E test community
Tdd for BT E2E test communityKerry Buckley
 
Labsheet 6 - FP 201
Labsheet 6 - FP 201Labsheet 6 - FP 201
Labsheet 6 - FP 201rohassanie
 
C# console applications.docx
C# console applications.docxC# console applications.docx
C# console applications.docxMehwishKanwal14
 
1- Create a Visual Calculator by using winform application in Microsof.docx
1- Create a Visual Calculator by using winform application in Microsof.docx1- Create a Visual Calculator by using winform application in Microsof.docx
1- Create a Visual Calculator by using winform application in Microsof.docxjbarbara1
 
Csphtp1 12
Csphtp1 12Csphtp1 12
Csphtp1 12HUST
 
Keynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptxKeynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptxEqraKhattak
 
Editing the Visual Editor (WordPress)
Editing the Visual Editor (WordPress)Editing the Visual Editor (WordPress)
Editing the Visual Editor (WordPress)Jake Goldman
 
JavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeJavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeLaurence Svekis ✔
 
Say Goodbye to Procedural Programming - Nick Sutterer
Say Goodbye to Procedural Programming - Nick SuttererSay Goodbye to Procedural Programming - Nick Sutterer
Say Goodbye to Procedural Programming - Nick SuttererRuby Meditation
 
Go Programming by Example_ Nho Vĩnh Share.pdf
Go Programming by Example_ Nho Vĩnh Share.pdfGo Programming by Example_ Nho Vĩnh Share.pdf
Go Programming by Example_ Nho Vĩnh Share.pdfNho Vĩnh
 
06 laboratory exercise 1
06 laboratory exercise 106 laboratory exercise 1
06 laboratory exercise 1Anne Lee
 
Content
Content Content
Content o3aroo
 
Building Potent WordPress Websites
Building Potent WordPress WebsitesBuilding Potent WordPress Websites
Building Potent WordPress WebsitesKyle Cearley
 
Task scheduling in laravel 8 tutorial
Task scheduling in laravel 8 tutorialTask scheduling in laravel 8 tutorial
Task scheduling in laravel 8 tutorialKaty Slemon
 
Salesforce, APEX Concepts
Salesforce, APEX ConceptsSalesforce, APEX Concepts
Salesforce, APEX ConceptsGaurish Goel
 
Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Bhushan Mulmule
 

Similar to Programming Assignment- Building a functional program Here are my err.docx (20)

Tdd for BT E2E test community
Tdd for BT E2E test communityTdd for BT E2E test community
Tdd for BT E2E test community
 
Labsheet 6 - FP 201
Labsheet 6 - FP 201Labsheet 6 - FP 201
Labsheet 6 - FP 201
 
C# console applications.docx
C# console applications.docxC# console applications.docx
C# console applications.docx
 
1- Create a Visual Calculator by using winform application in Microsof.docx
1- Create a Visual Calculator by using winform application in Microsof.docx1- Create a Visual Calculator by using winform application in Microsof.docx
1- Create a Visual Calculator by using winform application in Microsof.docx
 
Csphtp1 12
Csphtp1 12Csphtp1 12
Csphtp1 12
 
Logging in JavaScript - Part-3
Logging in JavaScript - Part-3Logging in JavaScript - Part-3
Logging in JavaScript - Part-3
 
Keynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptxKeynote + Next Gen UIs.pptx
Keynote + Next Gen UIs.pptx
 
Visualbasic tutorial
Visualbasic tutorialVisualbasic tutorial
Visualbasic tutorial
 
Editing the Visual Editor (WordPress)
Editing the Visual Editor (WordPress)Editing the Visual Editor (WordPress)
Editing the Visual Editor (WordPress)
 
JavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your codeJavaScript Advanced - Useful methods to power up your code
JavaScript Advanced - Useful methods to power up your code
 
Say Goodbye to Procedural Programming - Nick Sutterer
Say Goodbye to Procedural Programming - Nick SuttererSay Goodbye to Procedural Programming - Nick Sutterer
Say Goodbye to Procedural Programming - Nick Sutterer
 
Go Programming by Example_ Nho Vĩnh Share.pdf
Go Programming by Example_ Nho Vĩnh Share.pdfGo Programming by Example_ Nho Vĩnh Share.pdf
Go Programming by Example_ Nho Vĩnh Share.pdf
 
06 laboratory exercise 1
06 laboratory exercise 106 laboratory exercise 1
06 laboratory exercise 1
 
Content
Content Content
Content
 
Building Potent WordPress Websites
Building Potent WordPress WebsitesBuilding Potent WordPress Websites
Building Potent WordPress Websites
 
Task scheduling in laravel 8 tutorial
Task scheduling in laravel 8 tutorialTask scheduling in laravel 8 tutorial
Task scheduling in laravel 8 tutorial
 
Salesforce, APEX Concepts
Salesforce, APEX ConceptsSalesforce, APEX Concepts
Salesforce, APEX Concepts
 
Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5
 
To-Do App With Flutter: Step By Step Guide
To-Do App With Flutter: Step By Step GuideTo-Do App With Flutter: Step By Step Guide
To-Do App With Flutter: Step By Step Guide
 
Game dev 101 part 2
Game dev 101   part 2Game dev 101   part 2
Game dev 101 part 2
 

More from LukeQVdGrantg

Provide examples of the -monkey- attempting to be transferred from a s.docx
Provide examples of the -monkey- attempting to be transferred from a s.docxProvide examples of the -monkey- attempting to be transferred from a s.docx
Provide examples of the -monkey- attempting to be transferred from a s.docxLukeQVdGrantg
 
Provide 3 substantive audit procedures chosen among the following topi.docx
Provide 3 substantive audit procedures chosen among the following topi.docxProvide 3 substantive audit procedures chosen among the following topi.docx
Provide 3 substantive audit procedures chosen among the following topi.docxLukeQVdGrantg
 
Provide an appropriate response- Determine the probability distributio.docx
Provide an appropriate response- Determine the probability distributio.docxProvide an appropriate response- Determine the probability distributio.docx
Provide an appropriate response- Determine the probability distributio.docxLukeQVdGrantg
 
Punnett square problems continued Complete the following problems- Lis.docx
Punnett square problems continued Complete the following problems- Lis.docxPunnett square problems continued Complete the following problems- Lis.docx
Punnett square problems continued Complete the following problems- Lis.docxLukeQVdGrantg
 
public class ThreeTenDLList-T- implements Iterable-T- { -- doubly.docx
public class ThreeTenDLList-T- implements Iterable-T- {      -- doubly.docxpublic class ThreeTenDLList-T- implements Iterable-T- {      -- doubly.docx
public class ThreeTenDLList-T- implements Iterable-T- { -- doubly.docxLukeQVdGrantg
 
Public - Week 12- Interactive activity 12-1 Learning Outcomes- Discuss.docx
Public - Week 12- Interactive activity 12-1 Learning Outcomes- Discuss.docxPublic - Week 12- Interactive activity 12-1 Learning Outcomes- Discuss.docx
Public - Week 12- Interactive activity 12-1 Learning Outcomes- Discuss.docxLukeQVdGrantg
 
public class Bitset implements Set{ private boolean set--- pub.docx
public class Bitset implements Set{     private boolean set---     pub.docxpublic class Bitset implements Set{     private boolean set---     pub.docx
public class Bitset implements Set{ private boolean set--- pub.docxLukeQVdGrantg
 
Protecting the Business 14- Briefly describe any business insurance yo.docx
Protecting the Business 14- Briefly describe any business insurance yo.docxProtecting the Business 14- Briefly describe any business insurance yo.docx
Protecting the Business 14- Briefly describe any business insurance yo.docxLukeQVdGrantg
 
ProShares UltraPro QQQ has a total asset turnover of 1-29- a debt-equi.docx
ProShares UltraPro QQQ has a total asset turnover of 1-29- a debt-equi.docxProShares UltraPro QQQ has a total asset turnover of 1-29- a debt-equi.docx
ProShares UltraPro QQQ has a total asset turnover of 1-29- a debt-equi.docxLukeQVdGrantg
 
Properties that Define Life ( 10 points) Matching- Please write the le.docx
Properties that Define Life ( 10 points) Matching- Please write the le.docxProperties that Define Life ( 10 points) Matching- Please write the le.docx
Properties that Define Life ( 10 points) Matching- Please write the le.docxLukeQVdGrantg
 
Prompt 3- 70- of the light aircraft that disappear while in flight in.docx
Prompt 3- 70- of the light aircraft that disappear while in flight in.docxPrompt 3- 70- of the light aircraft that disappear while in flight in.docx
Prompt 3- 70- of the light aircraft that disappear while in flight in.docxLukeQVdGrantg
 
Prompt- (Part 1) Is life in the metaverse inevitable or unlikely- Are.docx
Prompt- (Part 1) Is life in the metaverse inevitable or unlikely- Are.docxPrompt- (Part 1) Is life in the metaverse inevitable or unlikely- Are.docx
Prompt- (Part 1) Is life in the metaverse inevitable or unlikely- Are.docxLukeQVdGrantg
 
Prokaryotes are all gram positive- eukaryotes are all gram negative Pr.docx
Prokaryotes are all gram positive- eukaryotes are all gram negative Pr.docxProkaryotes are all gram positive- eukaryotes are all gram negative Pr.docx
Prokaryotes are all gram positive- eukaryotes are all gram negative Pr.docxLukeQVdGrantg
 
Prolessor fsadore (Lmy) Invest-a-Lot retired two years ago from Except.docx
Prolessor fsadore (Lmy) Invest-a-Lot retired two years ago from Except.docxProlessor fsadore (Lmy) Invest-a-Lot retired two years ago from Except.docx
Prolessor fsadore (Lmy) Invest-a-Lot retired two years ago from Except.docxLukeQVdGrantg
 
PROLOG Convert this proposition to Object-Attribute-Value proposition(.docx
PROLOG Convert this proposition to Object-Attribute-Value proposition(.docxPROLOG Convert this proposition to Object-Attribute-Value proposition(.docx
PROLOG Convert this proposition to Object-Attribute-Value proposition(.docxLukeQVdGrantg
 
Project Part 1- Analysis of the opportunities and risks of a company i.docx
Project Part 1- Analysis of the opportunities and risks of a company i.docxProject Part 1- Analysis of the opportunities and risks of a company i.docx
Project Part 1- Analysis of the opportunities and risks of a company i.docxLukeQVdGrantg
 
Project Objectives- To write a program that implements the following A.docx
Project Objectives- To write a program that implements the following A.docxProject Objectives- To write a program that implements the following A.docx
Project Objectives- To write a program that implements the following A.docxLukeQVdGrantg
 
Project gamesmanship in organizations performs what purpose- Creates c.docx
Project gamesmanship in organizations performs what purpose- Creates c.docxProject gamesmanship in organizations performs what purpose- Creates c.docx
Project gamesmanship in organizations performs what purpose- Creates c.docxLukeQVdGrantg
 
Project managers should turn customer needs into requirements- The sum.docx
Project managers should turn customer needs into requirements- The sum.docxProject managers should turn customer needs into requirements- The sum.docx
Project managers should turn customer needs into requirements- The sum.docxLukeQVdGrantg
 
Project managers use this conflict resolution technique most often- A-.docx
Project managers use this conflict resolution technique most often- A-.docxProject managers use this conflict resolution technique most often- A-.docx
Project managers use this conflict resolution technique most often- A-.docxLukeQVdGrantg
 

More from LukeQVdGrantg (20)

Provide examples of the -monkey- attempting to be transferred from a s.docx
Provide examples of the -monkey- attempting to be transferred from a s.docxProvide examples of the -monkey- attempting to be transferred from a s.docx
Provide examples of the -monkey- attempting to be transferred from a s.docx
 
Provide 3 substantive audit procedures chosen among the following topi.docx
Provide 3 substantive audit procedures chosen among the following topi.docxProvide 3 substantive audit procedures chosen among the following topi.docx
Provide 3 substantive audit procedures chosen among the following topi.docx
 
Provide an appropriate response- Determine the probability distributio.docx
Provide an appropriate response- Determine the probability distributio.docxProvide an appropriate response- Determine the probability distributio.docx
Provide an appropriate response- Determine the probability distributio.docx
 
Punnett square problems continued Complete the following problems- Lis.docx
Punnett square problems continued Complete the following problems- Lis.docxPunnett square problems continued Complete the following problems- Lis.docx
Punnett square problems continued Complete the following problems- Lis.docx
 
public class ThreeTenDLList-T- implements Iterable-T- { -- doubly.docx
public class ThreeTenDLList-T- implements Iterable-T- {      -- doubly.docxpublic class ThreeTenDLList-T- implements Iterable-T- {      -- doubly.docx
public class ThreeTenDLList-T- implements Iterable-T- { -- doubly.docx
 
Public - Week 12- Interactive activity 12-1 Learning Outcomes- Discuss.docx
Public - Week 12- Interactive activity 12-1 Learning Outcomes- Discuss.docxPublic - Week 12- Interactive activity 12-1 Learning Outcomes- Discuss.docx
Public - Week 12- Interactive activity 12-1 Learning Outcomes- Discuss.docx
 
public class Bitset implements Set{ private boolean set--- pub.docx
public class Bitset implements Set{     private boolean set---     pub.docxpublic class Bitset implements Set{     private boolean set---     pub.docx
public class Bitset implements Set{ private boolean set--- pub.docx
 
Protecting the Business 14- Briefly describe any business insurance yo.docx
Protecting the Business 14- Briefly describe any business insurance yo.docxProtecting the Business 14- Briefly describe any business insurance yo.docx
Protecting the Business 14- Briefly describe any business insurance yo.docx
 
ProShares UltraPro QQQ has a total asset turnover of 1-29- a debt-equi.docx
ProShares UltraPro QQQ has a total asset turnover of 1-29- a debt-equi.docxProShares UltraPro QQQ has a total asset turnover of 1-29- a debt-equi.docx
ProShares UltraPro QQQ has a total asset turnover of 1-29- a debt-equi.docx
 
Properties that Define Life ( 10 points) Matching- Please write the le.docx
Properties that Define Life ( 10 points) Matching- Please write the le.docxProperties that Define Life ( 10 points) Matching- Please write the le.docx
Properties that Define Life ( 10 points) Matching- Please write the le.docx
 
Prompt 3- 70- of the light aircraft that disappear while in flight in.docx
Prompt 3- 70- of the light aircraft that disappear while in flight in.docxPrompt 3- 70- of the light aircraft that disappear while in flight in.docx
Prompt 3- 70- of the light aircraft that disappear while in flight in.docx
 
Prompt- (Part 1) Is life in the metaverse inevitable or unlikely- Are.docx
Prompt- (Part 1) Is life in the metaverse inevitable or unlikely- Are.docxPrompt- (Part 1) Is life in the metaverse inevitable or unlikely- Are.docx
Prompt- (Part 1) Is life in the metaverse inevitable or unlikely- Are.docx
 
Prokaryotes are all gram positive- eukaryotes are all gram negative Pr.docx
Prokaryotes are all gram positive- eukaryotes are all gram negative Pr.docxProkaryotes are all gram positive- eukaryotes are all gram negative Pr.docx
Prokaryotes are all gram positive- eukaryotes are all gram negative Pr.docx
 
Prolessor fsadore (Lmy) Invest-a-Lot retired two years ago from Except.docx
Prolessor fsadore (Lmy) Invest-a-Lot retired two years ago from Except.docxProlessor fsadore (Lmy) Invest-a-Lot retired two years ago from Except.docx
Prolessor fsadore (Lmy) Invest-a-Lot retired two years ago from Except.docx
 
PROLOG Convert this proposition to Object-Attribute-Value proposition(.docx
PROLOG Convert this proposition to Object-Attribute-Value proposition(.docxPROLOG Convert this proposition to Object-Attribute-Value proposition(.docx
PROLOG Convert this proposition to Object-Attribute-Value proposition(.docx
 
Project Part 1- Analysis of the opportunities and risks of a company i.docx
Project Part 1- Analysis of the opportunities and risks of a company i.docxProject Part 1- Analysis of the opportunities and risks of a company i.docx
Project Part 1- Analysis of the opportunities and risks of a company i.docx
 
Project Objectives- To write a program that implements the following A.docx
Project Objectives- To write a program that implements the following A.docxProject Objectives- To write a program that implements the following A.docx
Project Objectives- To write a program that implements the following A.docx
 
Project gamesmanship in organizations performs what purpose- Creates c.docx
Project gamesmanship in organizations performs what purpose- Creates c.docxProject gamesmanship in organizations performs what purpose- Creates c.docx
Project gamesmanship in organizations performs what purpose- Creates c.docx
 
Project managers should turn customer needs into requirements- The sum.docx
Project managers should turn customer needs into requirements- The sum.docxProject managers should turn customer needs into requirements- The sum.docx
Project managers should turn customer needs into requirements- The sum.docx
 
Project managers use this conflict resolution technique most often- A-.docx
Project managers use this conflict resolution technique most often- A-.docxProject managers use this conflict resolution technique most often- A-.docx
Project managers use this conflict resolution technique most often- A-.docx
 

Recently uploaded

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
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
 
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
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 

Recently uploaded (20)

This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
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
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
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
 
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
 
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
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

Programming Assignment- Building a functional program Here are my err.docx

  • 1. Programming Assignment: Building a functional program Here are my errors: Failed Test 1: Not logging the consoleStyler() variables Failed Test 2: Not logging celebrateStyler() variables Failed Test 3: Not calling consoleStyler() and celebrateStyler() Failed Test 4: Not calling styleAndCelebrate() This is my code: // Task 1: Build a function-based console log message generator function consoleStyler(message, style) { console.log(`%c ${message}`, Object.entries(style).map(([key, value]) => ({[key]: value})).reduce((a, b) => ({...a, ...b}), {})); } // Task 2: Build another console log message generator function celebrateStyler(message) { console.log(` ${message} `); } // Task 3: Call both the consoleStyler and the celebrateStyler functions consoleStyler("Hello World!", { color: "blue", fontSize: "20px" }); celebrateStyler("Let's celebrate!"); // Task 4: Insert a congratulatory and custom message function styleAndCelebrate(message) { consoleStyler("Congratulations!", { color: "green", fontSize: "24px", fontWeight: "bold" }); celebrateStyler(` ${message} `); } // Task 5: Call styleAndCelebrate styleAndCelebrate("You did it!");