I hate the Wayland logo; it’s trash.

unfortunately I cannot find alternatives to the gore subreddits :(

  • 0 Posts
  • 15 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle



  • Yes, it would. Just like a string of spaces " " == 0, but it isn’t that bad; === is Javascript’s version of == in other languages, and, thus, you should be using it if you don’t want that wonkiness.

    == is just for convenience, like when you want to make sure that the user didn’t leave the form empty and the button shouldn’t be greyed out, and other UI stuff. Without these kinds of features JS wouldn’t be used in so many toolkits.






  • Limitless_screaming@kbin.socialtoMemes@lemmy.mlHeh
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    If you have two charges q1 and q2, you can get the force between them F by multiplying them with the coulomb constant K (approximately 9 × 10^9) and then dividing that by the distance between them squared r^2.

    q1 and q2 cannot be negative. Sometimes you’ll not be given a charge, and instead the problem will tell you that you have a proton or electron, both of them have the same charge (1.6 × 10^-19 C), but electrons have a negative charge.