Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

can someone pls explain what a function is in java cause im new to coding

MatthewXia
MatthewXia

i have no idea. pls help. (but u dont have to if to decide not to)

2 years ago
You are viewing a single comment. View All
1
1
MatthewXia
MatthewXia

@JosephSanthosh
can you pls explain the function keyword?

2 years ago
1
gibbsfreenergy
gibbsfreenergy

@MatthewXia
The function keyword can be used to define a function inside an expression. You can also define functions using the Function constructor and a function declaration.

2 years ago
1
gibbsfreenergy
gibbsfreenergy

@MatthewXia

image

2 years ago
1
MatthewXia
MatthewXia

@JosephSanthosh
can you pls also explain the function constructor and a function declaration. sry for the hassle

2 years ago
1
MatthewXia
MatthewXia

@JosephSanthosh
im still confuzzled on how it works

2 years ago
1
MatthewXia
MatthewXia

@JosephSanthosh
he already is but thx for the suggestion

2 years ago