Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.handler = (event, context, callback) => {
- const quotes = [{
- author: "Oscar Wilde",
- quote: "Be yourself; everyone else is already taken."
- }, {
- author: "Mahatma Gandhi",
- quote: "Be the change that you wish to see in the world."
- }, {
- author: "Friedrich Nietzsche",
- quote: "Without music, life would be a mistake"
- }];
- const randomQuote = quotes[Math.floor(Math.random() * quotes.length)];
- callback(null, randomQuote);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement