#JavaScript ES6, <s>34</s> <s>27</s> 25 characters <!-- language: lang-js --> f=>f=='google'?Δ:f.length Throws a ReferenceError on `Δ` for google. <!-- begin snippet: js hide: true --> <!-- language: lang-js --> alert((f=>f=='google'?Δ:f.length)('test')) <!-- end snippet -->