Question: WRITE IN JAVASCRIPT CAN NOT USE ANY EXTERNAL FILES OR LIBRARIES FILE MUST BE CONFIGURED FOR STRICT MODE MUST BE ORIGINAL WORK PLEASE _findNumOfDigits(arg) Create

WRITE IN JAVASCRIPT

CAN NOT USE ANY EXTERNAL FILES OR LIBRARIES

FILE MUST BE CONFIGURED FOR STRICT MODE

MUST BE ORIGINAL WORK PLEASE

_findNumOfDigits(arg)

Create a JavaScript function that meets the following requirements:

Is passed an argument (arg)

The function determines the number of digits in the argument

The length of the argument (number of characters) varies

The function returns the count of the number of digits back to the caller.

EXAMPLE

_findNumOfDigits(1000) 4

_findNumOfDigits(abcd) 0

_findNumOfDigits(12) 2

_findNumOfDigits(COMP1235) 4

_findNumOfDigits(0) 1

_findNumOfDigits(C1O2M3P5) 4

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!