Question: With every js file created, does html need to be linked with it . Do i always have to have an html file with it

With every js file created, does html need to be linked with it. Do i always have to have an html file with it or I can create and run code with js only? And if I run a code, do create a seperate file to test it or do i continue under one file. I feel this is may be regarded as a stupid question, but I am honestly confused each time I want to start a js file.
For this Compulsory Task, you will be making your own higher-order function
that mimics the behaviour of a built-in method that already exists (similar to
what we did earlier when we created our own implementation of the built-in
function map(), which we called myMapper()).
Follow these steps:
You're going to be creating your own filter function that is similar to the
built-in filter() method in JavaScript. The first thing you need to do is to
have a look here to familiarise yourself with the built-in filter() method.
Once you have the basic idea, you can move on to the next step.
Create a higher-order function named myFilterfunction() in a file named
higherorder.js (do not use the built-in function at all - the objective is to
create a different filter function of your own).
Your filter function should take the following two arguments:
An array of strings with 10 words, where at least three of the words
have six letters.
A callback function that returns a boolean based on whether or not
a word has six letters.
myFilterfunction() should return a new array that contains only the
words that are six letters long and no other words.
Remember: you may not use the built-in filter method to complete this task!
With every js file created, does html need to be

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!