Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
3 日後に予定されているサイエンス フェアのプロジェクトに取り組んでおり、助けが必要です。charCodeAt() を使用していますが、キーと charCodeAt() を使用して新しいコードを作成するコードの書き方がわかりません。助けてください。
var plainText = "watergate"; var cipherText = ""; for ( var i = 0; i < plainText.length; i++ ) cipherText += String.fromCharCode( plainText.charCodeAt(i) + 42 );