An alternative approach to switch statements in Javascript
У вашего броузера проблема в совместимости с HTML5
Switch statements are fundamental to JavaScript and web developers. But is there a better way? In this videos I discuss a few alternatives to switch statements! #JavaScript #JavaScript2019 #WebDevelopment
Check out my last video on the top Udemy 2019 courses! https://youtu.be/-Smy7CCDny0
Sign up here to get the first chapter of my book and a cheatsheet - http://bit.ly/2GWWuEw
Check out My Nuxt.js Course (Two Courses In One) - http://bit.ly/2LalQka
-----☆-----☆-----☆-----☆-----☆-----☆-----☆-----☆-----☆-----☆
► LEARNING TO CODE? CHECK OUT THESE COURSES! (SOME ARE AFFILIATE)
JAVASCRIPT ALGORITHMS COLT STEELE'S COURSE - http://bit.ly/2L8HSPV
THE WEB DEVELOPER BOOTCAMP (GREAT FOR BEGINNERS) — http://bit.ly/2zP4alw
THE ADVANCED WEB DEVELOPER BOOTCAMP — http://bit.ly/2h53MYg
THE ULTIMATE VUE JS 2 COURSE - http://bit.ly/2CTvsvx
CHECK OUT THIS COURSE - Angular 7 - The Complete Guide - http://bit.ly/2sCMxWm
VUE.JS + NUXT.JS (Two Courses In One) - http://bit.ly/2LalQka
► Wes Bos' Courses!
REACT FOR BEGINNERS - http://bit.ly/2BctxOE
ES6 - http://bit.ly/2iF4YT3
LEARN NODE - http://bit.ly/2jKLYpE
___
► GET THE FIRST CHAPTER OF MY NEW BOOK Vue.js in Action! SIGN UP HERE! — http://bit.ly/2GWWuEw
GET MY LAST BOOK EMBER.JS COOKBOOK! — https://goo.gl/LEIdSc
GET MY NEW BOOK VUE.JS IN ACTION - https://goo.gl/qohSPs
___
Links:
https://enmascript.com/articles/2018/10/22/why-I-prefer-objects-over-switch-statements
Code:
https://gist.github.com/ErikCH/da7060830e7eb1b089860dc325f4207e
MY WEBSITE — http://www.programwitherik.com
MY TWITTER — http://www.twitter.com/erikch
MY FACEBOOK — http://www.facebook.com/programwitherik