DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript basic function
const
square
=
function
(
x
)
{
return
x
*
x
;
}
;
console
.
log
(
square
(
12
)
)
;
// → 144
PREVIOUS
NEXT
Tagged:
#javascript
#basic
#function
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit