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
let arr = [ 'recycling', 70, 'pastime', 'animal' ];
let result = arr.every(function(value) {
return "string" === typeof value
});
console.log(result);
Comments
Leave a comment