Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.js
- var userLen = document.querySelectorAll('.username').length
- document.querySelectorAll('.username').forEach(function (event) {
- event[event === (userLen - 1)].innerHTML = window.localStorage.getItem('micky')
- })
Add Comment
Please, Sign In to add comment