how to make a function
function myFunction(){
console.log('hi')
}
myFunction()
how to make a function
function myFunction(){
console.log('hi')
}
myFunction()
basic function example
function myFunction(a, b) {
return a * b;
}
how to make a function in javascript
// Code by DiamondGolurk
// Defining the function
function test(arg1,arg2,arg3) {
// Insert code here.
// Example code.
console.log(arg1 + ', ' + arg2 + ', ' + arg3)
}
// Running the function
test('abc','123','xyz');
// Output
// abc, 123, xyz
Function example
// Define a function that prints a stringfunction welcomeMessage() { console.log('Welcome to JavaScript');}// Call the functionwelcomeMessage();
what is a function
def the_name(attributes):
#a tab
print("Hi")
#take the attributes
print(attributes)
#call the function
the_name("Hello")
#right the name and an attribute for attributes so it can print something
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us