Skip to content

Instantly share code, notes, and snippets.

View azat-co's full-sized avatar
🎯
Focusing

Professor Azat Mardan azat-co

🎯
Focusing
View GitHub Profile
const port = 80
require('http')
.createServer((req, res) => {
console.log('url:', req.url)
console.log('now we will slow down and block and consume CPU...')
for (var i=0; i< 100000000; i++) {}
res.end('hello world')
})
.listen(port, (error)=>{
console.log(`server is running on ${port}`)
@azat-co
azat-co / jquery-api.md
Last active November 2, 2022 19:33
The list of most commonly used jQuery API functions

Here is the list of most commonly used jQuery API functions:

  • find(): Selects elements based on the provided selector string
  • hide(): Hides an element if it was visible
  • show(): Shows an element if it was hidden
  • html(): Gets or sets an inner HTML of an element
  • append() Injects an element into the DOM after the selected element
  • prepend() Injects an element into the DOM before the selected element
  • on(): Attaches an event listener to an element
  • off() Detaches an event listener from an element