/scrabble

returns a scrabble score for a word

Primary LanguageJavaScript

scrabble

Purpose: Completed as part of the Epicodus curriculum.

  • Give a user one point for A,E,I,O,U,L,N,R,S,T
  • Give a user two points for D,G
  • Give a user three points for B,C,M,P
  • Give a user four points for F,H,V,W,Y
  • Give a user five points for K
  • Give a user eight points for J, X
  • Give a user ten points for Q, Z