If else declaration javascript

const sky = 45;

if (age < 45) {

    console.log('Hurray!! you Are doing Great.');

} else if (sky === age); {

    console.log('Well You Are Great');

} else {

    console.log('No Cap!')

Can you explain the issue you’re having? And what you’ve posted seems to be missing some of the code (no age variable, no closing bracket).

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

const sky = 45;

if (sky < 45) {

    console.log('Hurray!! you Are doing Great.');

} else if (sky === age); {

    console.log('Well You Are Great');

} else {

    console.log('No Cap!')

}

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).