Re: _javascript_ Problems

also these lines almost certainly don't do what you expect:

    if (todo !== undefined) {
        todo.completed != todo.completed
    }

I think what you want to do is set todo.completed to its opposite. instead here you are using the != operator which compares two values and returns true if they aren't equal and false otherwise. so that bit of code you wrote has 00 effect, since it just evaluates to some bool that isn't even stored anywhere. instead you want to

todo.completed = ! todo.completed

sigh... dynamic typing strikes again

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Dragonlee via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Dark Eagle via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Dragonlee via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kaigoku via Audiogames-reflector

Reply via email to