Skip to content

Commit 7ade127

Browse files
committed
feat: Add encode and decode messages in decoder.js
This commit adds the functionality to encode and decode messages in the decoder.js file. It includes the addition of the `encodeMessage` and `decodeMessage` variables, which respectively encode and decode the message "Code by ybtuti". This enhancement improves the functionality of the project by providing the capability to encode and decode messages.
1 parent 0ea6b98 commit 7ade127

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

decoder.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ function decode(encodedStr) {
1212
}
1313
}
1414
return decoded
15-
}
15+
}
16+
const encodeMessage = encode("Code by ybtuti");
17+
const decodeMessage = decode(encodeMessage);

0 commit comments

Comments
 (0)