#!/usr/local/bin/node 'use strict'; let foo = "A"; (function(){ let bar = () => foo; let foo = "B"; console.log(bar()); }());