CSS - Practical No. 4
CSS - Practical No. 4
III.Result :
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
IV.Conclusion:
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………
………………………………………………………………………………………………………………..
V.Questions:-
1. Explain function with parameters in JavaScript.
Function: A JavaScript function is a block of code designed to perform a
particular task. A JavaScript function is executed when “something” invokes it.
-A JavaScript function is defined with the function keyword, followed by a name,
followed by parentheses ().
The parentheses may include parameter names separated by commas:(parameter1,
parameter2, ...)
Syntax:
Function name(parameter1, parameter2,......parameterN)
{
//code to be executed
}
VI. Exercise:-
1. Write a program to perform additional operations by passing parameters using a function.