• Traister101
    link
    fedilink
    arrow-up
    1
    ·
    6 hours ago

    You cannot have a string argument, arguments and variables in JS don’t have a type. All you have in JS is objects. Actual functions, like full on function foo(){} are still objects, like you can actually store data on the things.