SlideShare a Scribd company logo
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

How to Work with Dev-C++
How to Work with Dev-C++How to Work with Dev-C++
How to Work with Dev-C++Deepak Jha
 
BASIC PARTS OF COMPUTER FOR DEMO TEACHING
BASIC PARTS OF COMPUTER FOR DEMO TEACHINGBASIC PARTS OF COMPUTER FOR DEMO TEACHING
BASIC PARTS OF COMPUTER FOR DEMO TEACHINGglairerabida
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEMMansi Tyagi
 
introduction to programming
introduction to programmingintroduction to programming
introduction to programmingGaea Bonita
 
History of Programming Language
History of Programming LanguageHistory of Programming Language
History of Programming Languagetahria123
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTShahzeb Pirzada
 
Computer Software & Hardware by MHM
Computer Software & Hardware by MHMComputer Software & Hardware by MHM
Computer Software & Hardware by MHMMd Mosharof Hosen
 
operating system pdf
operating system pdfoperating system pdf
operating system pdfAnourag009
 
Computer Worksheet Class 8 with answers
Computer Worksheet Class 8 with answersComputer Worksheet Class 8 with answers
Computer Worksheet Class 8 with answersAlithea Barbosa
 
It presentation specialised application software
It presentation specialised application softwareIt presentation specialised application software
It presentation specialised application softwareNisarga Nikam
 
External and internal computer parts
External and internal computer partsExternal and internal computer parts
External and internal computer partsqmaicol3
 

What's hot (20)

How to Work with Dev-C++
How to Work with Dev-C++How to Work with Dev-C++
How to Work with Dev-C++
 
BASIC PARTS OF COMPUTER FOR DEMO TEACHING
BASIC PARTS OF COMPUTER FOR DEMO TEACHINGBASIC PARTS OF COMPUTER FOR DEMO TEACHING
BASIC PARTS OF COMPUTER FOR DEMO TEACHING
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
 
introduction to programming
introduction to programmingintroduction to programming
introduction to programming
 
History of Programming Language
History of Programming LanguageHistory of Programming Language
History of Programming Language
 
System software
System softwareSystem software
System software
 
CPU Scheduling Algorithms
CPU Scheduling AlgorithmsCPU Scheduling Algorithms
CPU Scheduling Algorithms
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPT
 
Operating System
Operating System Operating System
Operating System
 
Operating System lab
Operating System labOperating System lab
Operating System lab
 
Computer Software & Hardware by MHM
Computer Software & Hardware by MHMComputer Software & Hardware by MHM
Computer Software & Hardware by MHM
 
operating system pdf
operating system pdfoperating system pdf
operating system pdf
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Computer Worksheet Class 8 with answers
Computer Worksheet Class 8 with answersComputer Worksheet Class 8 with answers
Computer Worksheet Class 8 with answers
 
Google App Engine
Google App EngineGoogle App Engine
Google App Engine
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
It presentation specialised application software
It presentation specialised application softwareIt presentation specialised application software
It presentation specialised application software
 
What is computer
What is computerWhat is computer
What is computer
 
Operating system
Operating systemOperating system
Operating system
 
External and internal computer parts
External and internal computer partsExternal and internal computer parts
External and internal computer parts
 

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

Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPCeline George
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Abhinav Gaur Kaptaan
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17Celine George
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxjmorse8
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...Denish Jangid
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online PresentationGDSCYCCE
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxricssacare
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...Nguyen Thanh Tu Collection
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersPedroFerreira53928
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 

Recently uploaded (20)

Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 

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!");