We create object methods like properties, starting with a name and a colon :, followed by the keyword function, (), and curly braces {}.
:
function
()
{}
Make sure to pick function followed by ( and then ), {, }.
(
)
{
}