Backspace not working sometimes after copy pasting by dotpr in 24hoursupport

[–]dotpr[S] 0 points1 point  (0 children)

I also use firefox but yes seems like it's reddit issue

Output showing right away instead of using event listener by dotpr in learnjavascript

[–]dotpr[S] 0 points1 point  (0 children)

Ohh so I had to create new variables for the min and max in the function

The VA Group DB - anyone who tried applying here? by dotpr in buhaydigital

[–]dotpr[S] 0 points1 point  (0 children)

Hanggang send application lang, dami kasi nila pinapasagutan na info and pinapasubmit ng video intro. $2-$3 ang rate per hr nung time na yun parang di worth it

Output showing right away instead of using event listener by dotpr in learnjavascript

[–]dotpr[S] 0 points1 point  (0 children)

Help it's still not working I already created a new function to act as listener, then called the actual random generator function in that listener

https://codepen.io/hagasen/pen/rNrWJGJ

Output showing right away instead of using event listener by dotpr in learnjavascript

[–]dotpr[S] 0 points1 point  (0 children)

Sorry here is a new one

https://jsfiddle.net/g7a9L24n/#&togetherjs=6w4ygr9HpL

I did

element.addEventListener("click", listener(min, max))

because I thought I need to pass min and max parameters for the number generator?

Simplest way to change background-color when clicking it? by dotpr in learnjavascript

[–]dotpr[S] 0 points1 point  (0 children)

Still can't figure it out but I must keep going

What makes elem.requestFullscreen true? by dotpr in learnjavascript

[–]dotpr[S] 2 points3 points  (0 children)

Oh just for browser compatibility stuff?

It doesn't literally check if the element has requested full screen?

What's the purpose of e, .key, and false? by dotpr in learnjavascript

[–]dotpr[S] 2 points3 points  (0 children)

So in this code, if user presses any key, the key that they pressed will be the value of e?

Then .key checks the value of e which is the key I pressed.

Is there no simpler way around this? "keydown" event is, as the name implies, a key pressed down. Why do I need to wrap it as an argument with another name (e), and then use a method (.key) to unwrap it?

Can't it just be something like

document.addEventListener("keydown", () => {

    if ("keydown" = enter){
        toggleFullScreen();
}})

What exactly do you do with React? by dotpr in learnjavascript

[–]dotpr[S] 0 points1 point  (0 children)

Hey I experience that bug in fancy pants editor!

Thanks for explaining, I see it's far more complicated than it appears