Skip to content

Commit

Permalink
Implemeted marvel comic packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rohits05 committed Nov 2, 2022
1 parent a0aabf8 commit 9f19b9d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Gear-Up/gUp.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
const superheroes = require('superheroes'); // Loading superheroes module
superheroes.all; //=> ['3-D
console.log(superheroes.random()); //=> 'Spider-Ham'
console.log("One of mine Superhero is: " + superheroes.random()); //=> 'Spider-Ham'

//______________________________________________________________________________________________

var names = require('marvel-comics-characters'); // Loading marvel-comics-characters module
var allNames = names.all;
var randomName = names.random(); // random name
var threeRandomNames = names.random(3); // returns an array of 3 random names
console.log(threeRandomNames); // Prints 3 random names in list format
// console.log("Here's the list of all the Marvel Comics character: \n"+ allNames);
console.log("\nRandom pick-up amongst the ones: "+ randomName);
console.log("\nThe Random Trio: "+ threeRandomNames); // Prints 3 random names in list format


//______________________________________________________________________________________________

const supervillians = require('supervillains'); // Loading supervillians module
supervillians.all;
// console.log(supervillians.random()); //=> 'Agent Smith'
console.log("\nThe Super Villian I don't wanna spit upon: " + supervillians.random()); //=> 'Agent Smith'

0 comments on commit 9f19b9d

Please sign in to comment.