News for hackers. Stuff that matters.
Re:On JavaScript's Weirdness by theThree on Friday April 04, 2025 @09:09AM (#43581779)

    function f1(a:number, b:number, c:number, d:number) {
        [a, b] = [b, a]
        [c, d] = [d, c]
        console.log(a, b, c, d)
    }
For the above codes Typescript gives error message: Type 'number[]' is not assignable to type 'number'.

There are no comments on this comment yet.