Answer to Question #271070 in HTML/JavaScript Web Application for prime

Question #271070

Check values in the Array is a String


https://drive.google.com/drive/folders/1kXJXOrjz0_j-RGv5nvMhCspFi0dH54LD?usp=sharing


Please fill the code in "write your code here"


They were just sample outputs. There are other test cases too which should be passed


1
Expert's answer
2021-11-27T11:34:08-0500
let arr = [ 'recycling', 70, 'pastime', 'animal' ];

let result = arr.every(function(value) {

  return "string" === typeof value

});

console.log(result);

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS