question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<Insert code here> JavaScript

See original GitHub issue

wrt entering code into function blocks, I would think beginners could benefit from a simple comment to indicate where to insert code, and reference the exercise question, so they don’t put it after the throw statement.

export function dayRate(ratePerHour) { // << insert code here (1) >> throw new Error('Implement the dayRate function'); }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
keskyle17commented, Feb 18, 2022

A good idea. I’ve had other thoughts about making the JS environment more beginner-friendly, but I’ll see if others have already commented on them.

0reactions
junedevcommented, Feb 18, 2022

@keskyle17 Additionally to what you said, I saw that students write the code above but then do not remove the throw statement. What to you think about this instead of adding another line?

export function dayRate(ratePerHour) {
  throw new Error('Remove this line and implement the dayRate function here instead.');
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I insert text here in Javascript - Stack Overflow
The question asks how to insert text into a particular span element. Inserting text into an element can be done by the e.g....
Read more >
How To Add JavaScript to HTML | DigitalOcean
You can add JavaScript code in an HTML document by employing the dedicated HTML tag <script> that wraps around JavaScript code.
Read more >
JavaScript Where To - W3Schools
In HTML, JavaScript code is inserted between <script> and </script> tags. Example. <script> document.getElementById("demo").
Read more >
Where to Write and Execute JavaScript Code - YouTube
In this tutorial we introduce 3 methods of practicing to write, edit and execute JavaScript Code. 3 methods introduced in this tutorial, ...
Read more >
How to insert code properly on Stack Overflow? [duplicate]
Press space four times and start writing or pasting your code. Paste your code and go to the far left of it and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found