Arrow Function Example

Create a function using arrow syntax.

Preview

Code

<script>
const add = (a,b) => a + b;

console.log(add(10,5));
</script>

More JS Functions Examples (7)