@@ -37,7 +37,7 @@ function initialPrompt() {
37
37
} ;
38
38
39
39
let newPointStructure = transform ( oldPointStructure ) ;
40
- console . log ( newPointStructure ) ;
40
+ // console.log(newPointStructure);
41
41
42
42
let simpleScorer = function ( word ) {
43
43
word = word . toUpperCase ( ) ;
@@ -108,7 +108,6 @@ function scorerPrompt() {
108
108
109
109
function transform ( oldPointStructureObject ) {
110
110
let newPointStructureObject = { } ;
111
- // loop through object
112
111
113
112
for ( let key in oldPointStructureObject ) {
114
113
let letters = oldPointStructureObject [ key ] ;
@@ -122,21 +121,12 @@ function transform(oldPointStructureObject) {
122
121
return newPointStructureObject ;
123
122
} ;
124
123
125
-
126
- // console.log("Letters with score '4':", oldPointStructure[4]);
127
- // console.log("3rd letter within the key '4' array:", oldPointStructure[4][2]);
128
-
129
- // let letters = oldPointStructure[8];
130
- // console.log("Letters with score '8':", letters);
131
- // console.log("2nd letter within the key '8' array:", letters[1]);
132
-
133
124
function runProgram ( ) {
134
125
let wordInput = initialPrompt ( ) ;
135
126
let scorerFunction = scorerPrompt ( ) ;
136
127
let score = scorerFunction ( wordInput ) ;
137
- let transformOldToNew = transform ( oldPointStructure ) ;
128
+ transform ( oldPointStructure ) ;
138
129
console . log ( `Score for '${ wordInput } ': ${ score } ` ) ;
139
-
140
130
}
141
131
142
132
// Don't write any code below this line //
0 commit comments