Exercise: Our First Deno App

Now that we built our first Deno app, it's your turn! What happens when you add another variable:

const food = Deno.args[0];
const parent = ?? <<---what should go in here??
if (food === 'love' && parent === 'ryan') {
   console.log('🦕...Deno is born!')
} ....


So that you can run the command:

deno run <yourfilename> 'love' 'ryan'


Scroll to see the answer...




















































const parent = Deno.args[1]


Have questions or issues you are encountering? Post your questions in our #deno channel on Discord! (see lecture 2 to join the community)