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

Javascript can I get the code for this function. For this exercise

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

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!