1// Code by DiamondGolurk
2// Defining the function
3
4function test(arg1,arg2,arg3) {
5 // Insert code here.
6 // Example code.
7 console.log(arg1 + ', ' + arg2 + ', ' + arg3)
8}
9
10// Running the function
11
12test('abc','123','xyz');
13
14// Output
15// abc, 123, xyz
1// Define a function that prints a stringfunction welcomeMessage() { console.log('Welcome to JavaScript');}// Call the functionwelcomeMessage();
1def the_name(attributes):
2 #a tab
3 print("Hi")
4 #take the attributes
5 print(attributes)
6#call the function
7the_name("Hello")
8#right the name and an attribute for attributes so it can print something