Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
javascript
advanced
functions
02fun_parameter_var.js
02fun_parameter_var.js
/** * Function parameters */ //define function function fja(p1, p2) { //NodeJS dont support p2=3, browser support res = p1 + p2; return res; } //call function var x=2, y=3; var res = fja(x, y); console.log(res); //5
Reload page
Preview
W3C validation
Edit Code
JS Console