Cost per acquisition (CPA), also known as “cost per
action,” is an online advertising pricing metric that measures how much
an advertiser pays for a specified acquisition (e.g., a sale, click,
registration).
// write your code here function swapRedGreen(pixel) { var newGreen = pixel.getRed(); var newRed = pixel.getGreen(); pixel.setGreen(newGreen); pixel.setRed(newRed); return pixel; } var image = new SimpleImage ("eastereggs.jpg"); print (image); for ( var pixel of image.values()){ if (swapRedGreen(pixel) ){ } } print (image);
Comments
Post a Comment