Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 8 lesson 2(Function Declaration/Definition)

Create a function with the name doYoga and add three console.log() statements in it, to define three steps in Yoga.

Inside the console.log() statement, only use alphabet for the message.

This should be easy for you. This is how a basic function is created.

We have added a console.log statement to the code, do not remove it, define your function above it.

function doYoga()// Add function here
{

console.log("Breathe deep");
console.log("fold your legs");
console.log("Meditate");
console.log(typeof doYoga);
}
nothing is showing on the output panel. What to do?
by

3 Answers

Romim83ee
function doYoga() // declaration of function
{
console.log("Breathe deep");
console.log("fold your legs");
console.log("Meditate");
console.log("typeof doYoga");
}

doYoga(); // calling the function

Now will be show output you can try it :)
Shivanitgxoe
Still its not working
manujayakumar
//check it now
function doYoga(){
console.log("Moving into");
console.log("Sustaining");
console.log("Releasing");
}

console.log(typeof doYoga);

Login / Signup to Answer the Question.