How to use alert to display variables in JavaScript

How to use alert to display variables in JavaScript