<Insert code here> JavaScript
See original GitHub issuewrt 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:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@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?