Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

javascript 51 expect(typeof returnedValue).toEqual('string'); }); it('returns the correct dog sound', () => { Specs Readme Pet Sounds Write a function petSounds that takes an animal

image text in transcribed
javascript
image text in transcribed
image text in transcribed
image text in transcribed
51 expect(typeof returnedValue).toEqual('string'); }); it('returns the correct dog sound', () => { Specs Readme Pet Sounds Write a function petSounds that takes an animal name and a country name. Using the globally-defined animalNoises array, petsounds should return a sentence that explains which sound the animal makes in the given country. petSounds('dog'. 'Iceland'); -> Dogs in Iceland say Voff voff! petSounds('cat' Korea'); // > Cats in Korea say tyaong! Console Assets Comments Shortcuts Microsoft Azure: Containerize apps with Kubernetes in Aru.. oto. e 9 EB Type here to search 51 expect(typeof returnedValue).toEqual('string'); }); it('returns the correct dog sound', () => { Specs Readme Pet Sounds Write a function petSounds that takes an animal name and a country name. Using the globally-defined animalNoises array, petsounds should return a sentence that explains which sound the animal makes in the given country. petSounds('dog'. 'Iceland'); -> Dogs in Iceland say Voff voff! petSounds('cat' Korea'); // > Cats in Korea say tyaong! Console Assets Comments Shortcuts Microsoft Azure: Containerize apps with Kubernetes in Aru.. oto. e 9 EB Type here to search * JS E EL CO vou WN 1 - let animalNoises = [ 2. { 'dog': { "America' : 'Woof! Woof!', "Germany' : 'Wau Wau!', 'England' : 'Bow Wow!', 'Uruguay' : 'Jua jua!', 'Afrikaans' : 'Blaf!', "Korea' : 'Mong mong!', 'Iceland' : 'Voff voff!', 'Albania' : 'Ham!', 'Algeria' : 'Ouaf ouaf!" 14 }, { 'cat' : { 'America' : 'Meow', 'Germany' : 'Miauw!', 'England' : 'mew mew', 'Uruguay' : 'Miau Miaul', 'Afrikaans' : 'Purr', "Korea' : 'Nyaong!', 'Iceland' : 'Kurnaul', 'Albania' : 'Miau', 'Algeria' : 'Miaou!" 26 - { 'chicken': { Pet Sounds PEN BY Fullstack Academy PRO JS 19 "Afrikaans' : 'Purr', "Korea' : 'Nyaong!', 'Iceland" : "Kurnau!", 'Albania' : 'Miau', 'Algeria' : 'Miaou!" 25 26 - }, { 'chicken': { "America' : 'Cluck cluck', "Germany' : 'tock tock tock', 'England' : 'Cluck Cluck', 'Uruguay' : 'gut gut gdak', Afrikaans' : 'kukeleku', Korea': 'ko-ko-ko', *Iceland" : 'Chuck-chuck!', *Albania' : 'Kotkot', *Algeria' : 'Cotcotcodet" 40 1/ YOUR CODE BELOW 42const petSounds=(animal,country)-> 43 let animalNoises -( 44 - { 'dog': {

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions