Edit in JSFiddle
JavaScript
HTML
CSS
Result
function f(x) { function g() { return x; } alert(g()); } f(5);