JavaScript Functions . Note: When a value is passed when declaring a function, it is called parameter. size The first argument passed to every function is a context object, which is used for receiving and sending binding data, logging, and communicating with the runtime. Below are some examples that illustrate the Math.floor() function in JavaScript: function Automobile(color) { this.color=color; } var vehicle1 = new Automobile ("red"); The function “Automobile()” is an object constructor, and its properties and methods i.e “color” is declared inside it by prefixing it with the keyword “this”. In my web application, I want to retrieve data from database based on the value that is passed to the function. eslint: no-loop-func; 7.4 Note: ECMA-262 defines a block as a list of statements. Variable name Functions When simple configuration is all that’s needed, the terse and well-known API that the query string affords would be superior if only JavaScript could use it. This is called for every object in the array var lat = newsObject.someParameter.latitude; // <--- I don't know what someParameter actually is. What is callback? This function expression will act like a method of class. In JavaScript, a function allows you to define a block of code, give it a name and then execute it as many times as you want.