Skip to content

Instantly share code, notes, and snippets.

View ashishkumar-ui's full-sized avatar
🎯
Focusing

Ashish Kumar ashishkumar-ui

🎯
Focusing
View GitHub Profile
@ashishkumar-ui
ashishkumar-ui / user.base.js
Created June 5, 2020 10:04
medium article - optional chaining
const user = {
name: 'Ashish Kumar',
website: 'https://KumarAshish.com',
address: {
city: 'New Delhi',
pin: '10005',
address1: 'some address details',
address2: 'more address details',
state: 'Delhi'
}
@ashishkumar-ui
ashishkumar-ui / Diwali effect.js
Last active June 27, 2019 09:28
Diwali Effect with JavaScript
setInterval(function () {
[].forEach.call(document.body.querySelectorAll("*"), function (a) {
a.style.outline = "20px dotted #" + (~~(Math.random() * (1 << 12))).toString(16)
}, 5);
}, 100);