Question: Javascript can I get the code for this function. For this exercise (cut InHalfAndFloor.js ), you are tasked to write out solution code for a
Javascript

can I get the code for this function.
For this exercise (cut InHalfAndFloor.js ), you are tasked to write out solution code for a function titled cutInHalfAndFloor(num). This function will take in a number and output a number. The business logic you provide should allow for dividing the input num by the value of 2 and rounding that quotient down. In other words: GIVEN: 22 as num WHEN: Invoking cut InHalfAndFloor (22) THEN: We output 11 function cutInHalfAndFloor (num) { // Insert code here: } cutInHalfAndFloor (22) -----> 11; An additional example: GIVEN: 99 as num WHEN: Invoking cutInHalfAndFloor (99) THEN: We output 49 function cutInHalfAndFloor (num) { // Insert code here; } cutInHalfAndFloor(99) -----> 49
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
