Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
setTimeout('makeRedAndBig()', 2000) | |
let makeRedAndBig = function () { | |
$('div.test').css({ | |
color: 'red', | |
fontSize: '20px' | |
}) | |
} |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
// Summation of two variables | |
let firstName = 'John', | |
lastName = 'Doe'; | |
let greeting = `Hi ${firstName}, ${lastName}`; | |
console.log(greeting); // Hi John, Doe | |
// Observer |
// Using array destructuring, fix the following code to print the keys and values of the `members` Map to the console. | |
const members = new Map() | |
members.set('Evelyn', 75.68) | |
members.set('Liam', 20.16) | |
members.set('Sophia', 0) | |
members.set('Marcus', 10.25) | |
let key | |
let value |
// function to reverse the order of characters in a word: | |
function reverse(word) { | |
let reversedWord = '' | |
for (let i = word.length - 1; i >= 0; i--) { | |
reversedWord = reversedWord.concat(word[i]) | |
} | |
return reversedWord | |
} | |
console.log(reverse('word')) // prints drow |
// option 1 | |
(function cycle(i){ | |
console.log("tick, ID: " + i); | |
setTimeout(cycle, 2000, i+1); | |
})(0); | |
// option 2 | |
(function cycle() { | |
document.querySelector(".css-1ewhobe").click() |
import './App.css'; | |
function App() { | |
const title = 'Welcome to the blog!' | |
const likes = 50 | |
// const person = { name: 'Yoshi', age: 30 } | |
const link = "https://google.com" | |
return ( | |
<div className="App"> |
(() => { | |
let delay = 0 | |
const jobs = document.querySelectorAll(".your-classes") | |
jobs.forEach(job => { | |
setTimeout(() => { | |
job.click() | |
}, delay) | |
delay += 2000 | |
}) | |
})() |
resultsDiv.style.transition = '4s' | |
resultsDiv.style.transition = 'none' | |
resultsDiv.style.opacity = '1' |
<!DOCTYPE html> | |
<html lang="ru-RU" prefix="og: http://ogp.me/ns#"> | |
<head> | |
<!-- Required --> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, maximum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta http-equiv="cleartype" content="on"> | |
<meta http-equiv="msthemecompatible" content="no"> |