Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //task5
- var vertical = 'kopele';
- var horizontal = 'opera';
- h = vertical.split('');
- w = horizontal.split('');
- console.log(h);
- for (var index = 0; index < h.length; index++) {
- if (h[index] == w[0]) {
- console.log(horizontal);
- continue;
- }
- console.log(h[index]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement