These are the most effective and practical tutorial. Maybe I can follow your Javascript tutorials for my school project on the effect of education on the economy.
@tooeooeenee48553 жыл бұрын
Your so smart :) 😻👍👌
@Stevesteacher3 жыл бұрын
Thanks :)
@tooeooeenee48553 жыл бұрын
@@Stevesteacher :)
@MamozaiMamozai7 ай бұрын
Thanks
@stephenmackenzie90167 ай бұрын
So lua supports lexical closures
@lehongronald57472 ай бұрын
what is wrong with code below? local function sum(...) for i =1, #{...} do print(i,{i}) end return end sum(10, 5,44 , 9, 5, 0, 14)
@anoraoriginal11 күн бұрын
you just need put end below sum and delete another i think
8 ай бұрын
Hello. I'm loving your video, they're helping me a lot :D I have a doubt: in 7:57 (line 2) can I write age = age and true or 5 ?
@moyenmedium12206 ай бұрын
The "and" operator return its first argument if it is falsy, otherwise it returns the second argument. Similarly, the "or" operate selects the first operator if it is truthy and otherwise selects the second operator. To come back to your example, if age is truthy, the "and" operator will return "true", and the the "or" operator will then select "true" and store it in age. If instead we opted for the first example he gave in the video (age = age or 6), a truthy age would store "age" in the "age" variable. In short, you can't write "age = age and true or 5" instead.