How to Accessing the animal object, assign the 'animalName' variable to the 'latinName' key on the object. return the animalName variable [on hold]

80
August 12, 2019, at 1:50 PM

In this exercise you will be given an object called 'animal' Create a new variable called 'animalName' Accessing the animal object, assign the 'animalName' variable to the 'latinName' key on the object. return the animalName variable.

this is what I tried but I am getting this error Expected 'animal.latinName' to be 'Ursus arctos'. More info Error: Expected 'animal.latinName' to be 'Ursus arctos'. at https://repl.it/public/replbox_javascript.219c066cdca9684eaa2b.bundle.js:670:286158

function exerciseTwo(animal){

let animalName={

animal:'latinName', };

animalName='animal.latinName';

return animalName;

}

Expected 'animal.latinName' to be 'Ursus arctos'. More info

READ ALSO
Is there any way to select all images of a certain size in Javascript? [on hold]

Is there any way to select all images of a certain size in Javascript? [on hold]

I want to select all the images on a webpage bigger than a certain size, say 200 x 200 pixelsIs there any way to do this in Javascript?

80
Can't convert URI to ImageData on iOS

Can't convert URI to ImageData on iOS

Using JavaScript, I am trying to take a file from an input and convert its data URI into an ImageData valueThis is properly working on desktop where a file from a location is loaded

53
Monte Carlo simulation for p value

Monte Carlo simulation for p value

I'm creating a back testing tool for trading, and after some reading determined that Monte Carlo Simulations can be a very good tool to establish the statistical significance of the initial results

93
Export contents with image from web page to Microsoft Word - javaScript [on hold]

Export contents with image from web page to Microsoft Word - javaScript [on hold]

I am trying to export a web page with images to a Microsoft Word document or rtf

54