Assignment

Write a page that greets new visitors with an alert box that says, Welcome, new-timer! This should only appear the first time a visitor sees the page—at the next visit, that alert box shouldn't appear.

Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.