http://gothoxeo4g2yqa3ba27z3sigeprlwan3deogkejooe7zqccou6qgkvad.onion/ryanmcdermott/clean-code-javascript/blob/master/README.md
951 952 **Bad:** 953 954 ```javascript 955 function combine ( val1 , val2 ) { 956 if ( 957 ( typeof val1 === "number" && typeof val2 === "number" ) || 958 ( typeof val1 === "string" && typeof val2 === "string" ) 959 ) { 960 return val1 + val2 ; 961 } 962 963 throw new Error ( "Must be of type String or Number" ); 964 } 965 ``` 966 967 **Good:** 968 969 ```javascript 970 function combine ( val1 , val2 ) { 971 return val1 + val2 ; 972 } 973 ``` 974 975 ** [ ⬆ back to top ](...