Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let message= function(heartSay){
- [73 , 32, 108, 111, 118, 101, 32, 121, 111, 117].forEach(function(value){
- heartSay+=String.fromCharCode(value)
- });
- return heartSay;
- }
- message('')
- //"I love you"
- /* Another Ways of calling the above function by using ECMAScript 6 arrows */
- let message= heartSay =>{
- [73 , 32, 108, 111, 118, 101, 32, 121, 111, 117].forEach((value)=> heartSay+=String.fromCharCode(value));
- return heartSay;
- }
- message('')
- //"I love you"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement