Commit dd9c9926 authored by MohammadAli Keshavarz's avatar MohammadAli Keshavarz

debug unexpected token

parent 1b9a56e0
......@@ -160,7 +160,7 @@ var age = 14;
age >= 18 ? console.log(firstName + ' drinks beer.') : console.log(firstName + ' drinks juice.');
var drink = age >= 18 ? 'beer' : 'juice';
console.log(drink);
(if (age >= 18) {
if (age >= 18) {
var drink = 'beer';
} else {
var drink = 'juice';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment