var age = 13;
var book = ( age>= 18) ? "nasty_book" : "comic";
console.log(book); 

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.