Skip to content
Advertisement

Double question javascript functions with arrays

This is a double question because I can just post once every 90 minutes. First I have to write a function that replaces a character of a string.

JavaScript

And puts a space in place of the chosen character. I tried this but is not working.

JavaScript

It returns just the same string.

And the second thing is that I have to write a function that returns true if the data type introduced is an arrat and false for the rest.

JavaScript

I’ve tried this.

JavaScript

But as well, it doesnt work.

I get this error:

JavaScript

I don’t know why. Thanks in advance for the help.

Advertisement

Answer

JavaScript

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement