Open The Lock - Grasshopper Question 問題: YOUR CODE var pinNumber = 10; var foundKey = pickRandom([‘yes’,’no’]); print(‘pinNumber is ‘ + pinNumber); print(‘foundKey is ‘ + foundKey); if (foundKey === ‘yes’ && pinNumber=== 10) { print(‘You opened the lock!‘); } if (foundKey === ‘yes’ && pinNumber=== 10) { print(‘The pin number is right, but you are missing the key.‘); } Sample code solution 解答: YOUR CODE var pinNumber = 10; var foundKey = pickRandom([‘yes’,’no’]); print(‘pinNumber is ‘ + pinNumber); print(‘foundKey is ‘ + foundKey); if (foundKey === ‘yes’ && pinNumber=== 10) { print(‘You opened the lock!‘); } if (foundKey === ‘no’ && pinNumber=== 10) { print(‘The pin number is right, but you are missing the key.‘); } Details 說明: 只要把 foundKey === ‘yes’ 改成 no 就可以 主程式沒把宣告放上去,是為了凸顯主題,不過...