Magazine Logo
๐Ÿ“Œ Press Ctrl+D to bookmark this page.

JavaScript Functions

A JavaScript function is a block of code designed to perform a particular task.

A JavaScript function is executed when "something" invokes it (calls it).

Why Functions?

You can reuse code: Define the code once, and use it many times.
You can use the same code many times with different arguments, to produce different results.

Sample1: Function - ToCelsius


Sample2: Function


Sample3: Function


Sample4: Function


Leave a Comment

Your email address will not be published. Required fields are marked *

AdsReg Magazine We would like to show you notifications for the latest news and updates. You can disable it when you want.
Allow Notifications