Skip to content

Category: Questions

display user name on the heading during onload

I’m making a dynamic website that need to show the user’s name in the heading. The heading should say ‘Hello, ‘, when the user enters their name into the text box and presses the button. And the name has to stay on the page even if I refresh the page. What will be the javascript functi…

Linked List how to add value to from an array?

I am following a linked list problem in Eloquent JavaScript book and I don’t understand how the value for the first link is 10 and not 20 if i is = 1, in the first iteration of the for loop. {value: 10, rest: {value: 20, rest: null}} I think I am thinking of the for loop the wrong way, but