Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Detect Different Values

The strict inequality operator !== returns true when two values do not have the same type and value.

Example

const currentPage = 2; const lastPage = 5; console.log(currentPage !== lastPage);

This displays true.

Your task

Use !== to create usernameAvailable. The entered name is available when it differs from the saved name. Display Available: true.