Ask coding questions

← Back to all posts
1
console
royalgreen50 (0)

I need the console.log and return to show together. How can I do that? help help help help help help help help help help help help help

Commentshotnewtop
1
Vandesm14 (482)

If you want a quick answer: Put console.log before the return statement like so

console.log("foo");
return "hello world"

Please mark this as answered if I helped your problem 👍

1
Vandesm14 (482)

Can you provide a link to your repl?

1
royalgreen50 (0)

It not a repl Its repl question im i in the wrong [email protected]

1
Vandesm14 (482)

@royalgreen50 It just has to involve coding. You're fine. But it would be easier to answer if I had your code. If you do have an example, could you put it in a repl?