Question: in javascript please app.codility.com/c/run/74Z45U-YFJ/ !!! Apps New Tab Ursula Wilson - E... Auto-Deploy GitH... poteto/hiring-with... Task 1 JavaScript English Files 2 task1 soluti test-inc Write

in javascript please
in javascript please app.codility.com/c/run/74Z45U-YFJ/ !!! Apps New Tab Ursula Wilson - E...
Auto-Deploy GitH... poteto/hiring-with... Task 1 JavaScript English Files 2 task1 soluti test-inc
Write a function: function solution (N): that given a positive integer N,

app.codility.com/c/run/74Z45U-YFJ/ !!! Apps New Tab Ursula Wilson - E... Auto-Deploy GitH... poteto/hiring-with... Task 1 JavaScript English Files 2 task1 soluti test-inc Write a function: function solution (N): that given a positive integer N, prints the consecutive numbers from 1 to N, each on a separate line. However, any number divisible by 2,3 or 5 should be replaced by the word Codility, Test or Coders respectively. If a number is divisible by more than one of the numbers: 2, 3 or 5, it should be replaced by a concatenation of the respective words Codility, Test and Coders in this given order. For example, numbers divisible by both 2 and 3 should be replaced by Codilitytest and numbers divisible by all three numbers: 2, 3 and 5, should be replaced by CodilityfestCoders. For example, here is the output for N = 24: 1 Codility Test Codility Coders Codility est 7 Adi14 Test Output All changes served MacBook esc 30 F2 000 000 F4 ! @ # 07 Task 1 JavaScript English Files 2 task1 solutions test-Input.Doct For example, here is the output for N = 24: 1 Codility Test Codility Coders CodilityTest 7 Codility Test CodilityCoders 11 Codilitytest 13 Codility TestCoders Codility 17 Codility test 19 CodilityCoders Test Codility 23 Codilitytest The function should retum An van All changes ved Test Output . MacBook Air F1 2013 000 ODO 14 1 N # 3 A 4 $ 4 1 % 5 6 & 7 Q W E 1 Task 1 JavaScript English Files 2 task1 soluti test-in 3 TestCoders Codility 17 CodilityTest 19 CodilityCoders Test Codility 23 CodilityTest The function shouldn't return any value. You can print a string to the output (without or with the end-of-line character) as follows: Test Output process.stdout.write('sample string')) process.stdout.write('whole linela'); Assume that . N is an integer within the range [1.1,000). In your solution, focus on correctness. The performance of your solution will not be the focus of the assessment. Copyright 2009-2021 by Codilty Limited. All Rights Reserved. Unauthorized copying publication or disclosure prohibited. All changes saved MacBook $ F2 BO 5 000 ODO 54 ra 1 2 # 3 $ 4 % A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!