Skip to content
Advertisement

Tag: function

get the number of inputs given to a function js

Assume i have created a function function findInputGiven(){} and i called it somewhere below twice findInputGiven([1, 2], [3, 4]), findInputGiven([1, 2], [3, 4], [5, 6]). This function can be called with multiple inputs, i dont know how many inputs will be available in my findInputGiven function. How can i get the number of inputs given to call function. My task

Add CSS in a function

I got my function to display my site to full screen : that I associate with a button image and it worked ! But when I move my cursor over it, the cursor remains in “default” version so I would like it to become “pointer” to give the effect of a button : “cursor: pointer;” and I don’t manage to

Advertisement