# Difference between function name() and name = function()?

**URL:** https://forum.kirupa.com/t/difference-between-function-name-and-name-function/207106
**Category:** Uncategorized
**Created:** [November 14, 2006, 8:24pm UTC](https://forum.kirupa.com/t/difference-between-function-name-and-name-function/207106 "2006-11-14T20:24:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DavidOrtiz](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@DavidOrtiz](https://forum.kirupa.com/u/DavidOrtiz)
#### Post date: [November 14, 2006, 8:24pm UTC](https://forum.kirupa.com/t/difference-between-function-name-and-name-function/207106/1 "2006-11-14T20:24:55Z")

</div>

hi guys, just wondering if theres a difference between using

function x() {

}

and

x = function(){

}

i find sometimes,but rarely function x() will not run while the other will??
