Forwarded from Web design & ๐ development
๐ซตJoin our other channels and groups
Channels
๐ง Website development
๐ง Machine learning and ai
๐ง Ui UX and graphic design
๐ง Ai news updates
๐ง Data science
Groups
๐ง Web dev
๐ง Freelancer community
๐ง Ai ml expert community
๐ง Tech startups community
Channels
๐ง Website development
๐ง Machine learning and ai
๐ง Ui UX and graphic design
๐ง Ai news updates
๐ง Data science
Groups
๐ง Web dev
๐ง Freelancer community
๐ง Ai ml expert community
๐ง Tech startups community
โค4
๐ฐ Alternatives to JavaScriptโs if...else statement
1๏ธโฃ Switch Statement
Finds the matching value of an expression and executes the code block associated to the matching value.
2๏ธโฃ Ternary Operator
Checks a condition and executes the first expression if the condition is true. Otherwise it runs the second expression.
3๏ธโฃ Jump / Dispatch Table
Stores value-function pairs in an object to quickly fetch and run a function based on a value (which is treated as an object key).
4๏ธโฃ Dynamic Dispatch
This pattern involves selecting which polymorphic method to call based on an objectโs type.
1๏ธโฃ Switch Statement
Finds the matching value of an expression and executes the code block associated to the matching value.
2๏ธโฃ Ternary Operator
Checks a condition and executes the first expression if the condition is true. Otherwise it runs the second expression.
3๏ธโฃ Jump / Dispatch Table
Stores value-function pairs in an object to quickly fetch and run a function based on a value (which is treated as an object key).
4๏ธโฃ Dynamic Dispatch
This pattern involves selecting which polymorphic method to call based on an objectโs type.
๐ง Learn ui ux and graphics design
๐ https://t.iss.one/graphics_design_123
๐ https://t.iss.one/graphics_design_123