Skip to content

Tag: function

Why function returns filtered boolean array

I learn js and trying to write filter method without using it. So I need to my function return filtered array based on function, which passed as a parameter. And it does but it’s returned boolean array and I don’t understand why. My code: Calling with some numbers: myFilter([2, 5, 1, 3, 8, 6], fun…

‘showPDF’ is declared but its value is never read

some background information: i have a button in my html file that should activate the showPDF function but it tells me that its value is never read javascript: the button in my html looks like this: help would be greatly appreciated as i can’t seem to find any answers in different questions Answer You j…