Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add7(a, b) {
- return( a+7 );
- }
- let result = add7(2);
- console.log( result );
- let multiply = (a, b) => {
- let result = a * b;
- return result;
- };
- let lastLetter = (string) => {
- return string.charAt(string.length-1);
- }
- alert(lastLetter("abcdef"));
- let capitalize = (string) => {
- return string.charAt(0).toUpperCase() + string.slice(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement