answersLogoWhite

0


Best Answer

The function you are trying to call expects an object of type digit to be passed in as an argument, but it got an object of type p instead. For example:

Let's say you want to create a JavaScript function called doubleNumber that takes a number as its input and outputs that number multiplied by 2. You could write it like this:

function doubleNumber(n)

{

return n*2;

}

If you tried to called this function like this:

doubleNumber("hi")

Then your function might produce the error:

Expected a Number but saw String instead

Because the operation *2 (times 2) can only be applied to numbers.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does Expected a digit but saw p instead mean?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When do you say she instead of her?

You say her in a sentence like: I saw her at the park (instead of I saw Ellie May at the park).You say she in a sentence like: She saw me at the park, or She went to the park today.


What did the terrorist expect to get in 9 11?

They expected to get revenge, as they saw it, and to get to their heaven


What does 'como vi' mean?

"como vi" is Spanish for "as I saw" or "how I saw".


How did it fell when they first saw land?

they were amazed of how white it was an expected it to be more gray


The pedometer below counts the number of steps you walk it can saw a 5digit what is the greatest number it can saw?

The largest 5 digit number it can be is 99999.


What are other words for saw?

Three other words instead of saw : stared looked watched


How does a Reciprocating saw cut?

The same as a hand saw except it has a motor doing the work instead of your arm.


What do girls mean when they say aww?

it means that they are moaning or saw something scary. you probably meant to say ARRGHHH instead of "aww", i like eating tacos.


What does devel mean on a chop saw?

You must mean 'Bevel' and that's the angle the saw is set at.


Which one of this sentences contains an object pronoun 1 You saw what you expected to see or 2 Jim accused her for stealing the picture?

Between the sentences:"You saw what you expected to see.""Jim accused her for stealing the picture."The second sentence has an object pronoun her, direct object of the verb 'accused'.


Whats a drop saw?

You could mean a chop saw.


What thing Allah like most but Muhammad cannot do?

The world was created for the Holy Prophet Muhammad (SAW). and there was no such thing that Allah liked or expected from the Holy Prophet (SAW) which he could'nt do.