1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

why in the world an object has stopped being a referance type

Discussion in 'JavaScript' started by isaac471765, Nov 20, 2020.

  1. #1
    all was writen right, and working just fine, than i checked again before sending assigment and it stopped behaving like referance type.
    SEMrush
     
    isaac471765, Nov 20, 2020 IP
    SEMrush
  2. malky66

    malky66 Acclaimed Member

    Messages:
    3,891
    Likes Received:
    2,200
    Best Answers:
    85
    Trophy Points:
    515
    #2
    Are you expecting some help with the limited info you posted or are you just making some sort of statement?
     
    malky66, Nov 20, 2020 IP
  3. isaac471765

    isaac471765 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3

    https://imgur.com/a/Fwk7KY5

    so... there is an empty object
    there is sum to sum up numbers, i use it because its referance type.
    than there is the method, it all worked fine.
    now it stoped being referance type.
    dont get it why, it all worked fine.

    as you see it shows 40, than 0, than 15, than 40 again.
    while it should be, 40, stay 40, 55, stay 55.
     
    isaac471765, Nov 20, 2020 IP
  4. isaac471765

    isaac471765 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #4
    Resolved Thanks.
     
    isaac471765, Nov 20, 2020 IP