---
# System prepended metadata

title: javascript 1

---

# javascript 1

```javascript=
function add() {} // Regular function

const add = function() {} //regularexpresionfunction

const add = () => {}  // Arrow function

// return type

function add () {

	return {}
}

const add = function() {
	return {};
}

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


// how many varible define
// 
// const, let, var
// 


var t = {}
var arr =[]
var st = "string"
var fl = 3.14
var num = 5

var arr = [ {}, {}, {}] || [[], [], []]
```