CACS254 Scripting Language

Scripting LanguageTU Board 2020

a) Write a program which includes a function sum(). This function sum() should be designed to add an arbitrary list of parameters. (For e.g ., if you call the function sum() as sum (1, 2) it should…

10

a) Write a program which includes a function sum(). This function sum() should be designed to add an arbitrary list of parameters. (For e.g ., if you call the function sum() as sum (1, 2) it should return the result 3 and if again you call the function sum() as sum(1,3,4) it should return the result 8). b) Write a program that displays the continuous time in the web page. The time should be in the format of HH:MM:SS.

A worked answer is on its wayMeanwhile, read the Scripting Language notes for this topic.

Discussion

Loading…

More Scripting Language questions

All Scripting Language old questions