-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |