Skip to content

Instantly share code, notes, and snippets.

@okeken
Created March 24, 2020 15:00
Show Gist options
  • Select an option

  • Save okeken/e322d766398a706a9bc7b6582dd0d507 to your computer and use it in GitHub Desktop.

Select an option

Save okeken/e322d766398a706a9bc7b6582dd0d507 to your computer and use it in GitHub Desktop.
var name = 'Oke Kehinde';
var courses =['html', 'css', 'php', 'js', 'nodejs', 'design']
console.log('My Name is '+ name + ' and I do the following course: ' + courses)
console.log(courses.length);
num =0
for (var i = 1; i < 101; i++) {
//print even numbers
if (courses.length % 2 === 0 ) {
num = num +2 ;
console.log(num)}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment