Javascript – Can I use a string to compare to an object key, and if it matches use the stored value, which is an operation
I'm currently working on a scientific calculator project, and figured instead of if else chaining I could create an object to store the functions as properties, to massively cut down on code and also not violate DRY heavily. const calcFunctions…