• 22 Posts
  • 58 Comments
Joined 3 years ago
cake
Cake day: June 30th, 2023

help-circle
  • This is true of other dynamic languages. For example, Python will also allow you to add arbitrary properties to objects without complaining.

    As others have mentioned, you need to read MDN, and more specifically, understand the browser APIs and DOM structure. When you have an HTMLElement, you should know that you need to set style properties on .style, and you should know that .style is a CSSStyleProperties object which uses camelCased version of the CSS property names, and each property takes a certain type of value, like the various value types for the width property, which include length values, percentage values and keyword values.

    One of the main skills of being a frontend developer is learning this object model. It doesn’t make sense to complain about it, because that is the job.

    Trial and error is not an efficient way to learn. You should at the very least experiment in the browser with the dev tools open. Have a hypothesis for how something should work (like changing a particular property), try making the change and observe the effect on the webpage and in the dev tool inspector, and if your hypothesis is wrong, understand why and update your mental model. The goal is to avoid using trial and error eventually and build an understanding instead.














  • I did the math and it’s 49.37% of the population, based on the 2024 census data, or 49.94% if you exclude Puerto Rico and D.C. I suppose mostly due to Texas and Florida being in the list, but also Ohio, Georgia and North Carolina with over 10M people each.

    Here's the raw data

    Based on the table from Wikipedia, and the list of states in the article.

    State Population (2024) Requires Age Verification Population Requiring Age Verification
    California 39,431,263 0
    Texas 31,290,831 x 31,290,831
    Florida 23,372,215 x 23,372,215
    New York 19,867,248 0
    Pennsylvania 13,078,751 0
    Illinois 12,710,158 0
    Ohio 11,883,304 x 11,883,304
    Georgia 11,180,878 x 11,180,878
    North Carolina 11,046,024 x 11,046,024
    Michigan 10,140,459 0
    New Jersey 9,500,851 0
    Virginia 8,868,896 x 8,868,896
    Washington 7,958,180 0
    Arizona 7,582,384 x 7,582,384
    Tennessee 7,227,750 x 7,227,750
    Massachusetts 7,136,171 0
    Indiana 6,924,275 x 6,924,275
    Maryland 6,263,220 0
    Missouri 6,245,466 x 6,245,466
    Wisconsin 5,960,975 0
    Colorado 5,957,493 0
    Minnesota 5,793,151 0
    South Carolina 5,478,831 x 5,478,831
    Alabama 5,157,699 x 5,157,699
    Louisiana 4,597,740 x 4,597,740
    Kentucky 4,588,372 x 4,588,372
    Oregon 4,272,371 0
    Oklahoma 4,095,393 x 4,095,393
    Connecticut 3,675,069 0
    Utah 3,503,613 x 3,503,613
    Nevada 3,267,467 0
    Iowa 3,241,488 0
    Puerto Rico 3,203,295 0
    Arkansas 3,088,354 x 3,088,354
    Kansas 2,970,606 x 2,970,606
    Mississippi 2,943,045 x 2,943,045
    New Mexico 2,130,256 0
    Nebraska 2,005,465 x 2,005,465
    Idaho 2,001,619 x 2,001,619
    West Virginia 1,712,278 0
    Hawaii 1,446,146 0
    New Hampshire 1,409,032 0
    Maine 1,405,012 0
    Montana 1,137,233 x 1,137,233
    Rhode Island 1,112,308 0
    Delaware 1,051,917 0
    South Dakota 924,669 x 924,669
    North Dakota 796,568 x 796,568
    Alaska 740,133 0
    District of Columbia 702,250 0
    Vermont 648,493 0
    Wyoming 587,618 x 587,618
    343,314,283 169,498,848
    49.37%











  • brianpeiris@lemmy.caOPtoFuck AI@lemmy.worldllmdeathcount.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    I didn’t intentionally limit myself to north america, but it’s possible my searches are implicitly limited to north america. It could also be that the average north american has had more access to ChatGPT than the rest of the world, or that suicides are hard to link to ChatGPT, or they go unreported or unlitigated in other parts of the world