Hassi (@pk_stack) header
Hassi (@pk_stack) profile picture

Crafting engaging content on #JavaScript, #CSS, and #HTML for the Twitter community. Here to make web development more accessible and enjoyable for all.

London, England
Joined March 2021
Check out this #JavaScript code. What will it log? console.log(2 + true);
1
163
Is there any friend from the #100DaysOfCode community here? If yes, let me know I will treat them to coffee ST. George's circus square Near Westminster and Waterloo London.
4
154
Thought I knew JavaScript until I saw an array acting like a linked list. Now I'm questioning everything. Is my coffee cup really a cup or just an object with a 'holdCoffee' method? #javascript
2
80
How has AI, or Artificial Intelligence, transformed industries and businesses? For a comprehensive overview of its real-world applications and future implications, my friend has written an insightful piece. It's definitely worth a read! #ArtificialIntelligence #TechTrends mckinsey.com/featured-insigh…
2
89
"Hey #designers! 🚀 Which #css library do you prefer to use for your projects? Reply with your choice or comment if your preferred one isn't listed. Let's see which one takes the lead! #WebDev #CodeNewbie #100DaysOfCode #HTML
0%Tailwind
0%Bootstrap
0%Bulma
0%Pure
0 votes • Final results
69
What will be the output? #javascript
1
83
JavaScript, initially designed for client-side scripting in web browsers, has found a role in backend development, largely due to Node.js - a JavaScript runtime that executes JS on the server side. In a world where speed and real-time updates matter, JavaScript shines with its non-blocking I/O execution model. The event-driven nature of JavaScript makes it ideal for handling numerous concurrent requests, which is typical in modern web applications. Utilizing JS on the backend allows full-stack developers to leverage their JS skills across both client and server sides, aiding in efficient code reuse and reducing context-switching. This translates to a consistent developer experience, quicker development cycles, and reduced cognitive load. JavaScript's rich ecosystem, supported by package managers like npm, hosts a myriad of libraries and frameworks that can aid in quick prototyping and deployment of robust applications. Express.js, for instance, simplifies routing, I/O handling, and integrating with databases. Meteor.js lets developers build real-time web apps from scratch, and Socket.IO enables real-time, bidirectional event-based communication. In data processing, JavaScript, thanks to its asynchronous nature, is making strides with stream processing – a paradigm that works with online algorithms to process data in real-time. However, with great power comes great responsibility. While JS offers flexibility, it demands discipline. Asynchronicity, while powerful, can lead to callback hell if not managed well. Thankfully, Promises and async/await syntax help mitigate this. Overall, JavaScript's evolution from a simple scripting language for browser manipulation to a robust language capable of server-side scripting demonstrates its flexibility, adaptability, and enduring appeal to developers. Its journey has only just begun - with more tools, frameworks, and potential use-cases appearing on the horizon. #JavaScript #BackendDevelopment #Nodejs #Expressjs #Meteorjs #AsynchronousProgramming #RealTimeApps #FullStackDevelopment
62
Frosted Glass Effect - CSS <!DOCTYPE html> <html> <head> <title>Page Title</title> <style> body { background-color: #ADD8E6; height: 100vh; display: flex; align-items: center; justify-content: center; } .frosted-glass { width: 300px; height: 200px; background: rgba(255, 255, 244, 0); /* Semi-transparent white */ backdrop-filter: blur(10px); /* Applying the blur */ display: flex; align-items: center; justify-content: center; padding: 20px; border-radius: 10px; box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 ); backdrop-filter: blur( 4px ); -webkit-backdrop-filter: blur( 4px ); border: 1px solid rgba( 255, 255, 255, 0.18 ); } .frosted-glass p { color: white; text-align: center; } </style> </head> <body> <div class="frosted-glass"> <p>Some text behind a frosted glass effect.</p> </div> </body> </html>
89
Finding duplicate elements in an array This code uses a Map to find duplicate elements in an array.
55
#Ashes23 #ENGvAUS #100DaysOfCode 🚀 ES6 Challenge: What will this JavaScript code return?
2
279
🎯 JS Challenge: What does this JavaScript code output? #MondayMood #MondayMotivaton console.log([1,2,3,4,5].reduce((accumulator, currentValue) => accumulator + currentValue));
1
103
#MondayMotivation 💡 JavaScript Challenge: Can you predict the output of this code?
1
75
🎩 JS Trick Question: What's the output of this code? Hint: Closure might be involved! 🧩
64
💻 JavaScript Pop Quiz: What will be logged to the console?
89
What is the difference between Call & Apply in javascript?
1
87
What is the reason for wrapping the entire content of a JavaScript source file in a function book?
59
"Hey #JavaScript Developers! 🚀 Which JavaScript framework/library do you prefer to use for your projects? Reply with your choice or comment if your preferred one isn't listed. Let's see which one takes the lead! #WebDev #CodeNewbie #100DaysOfCode"
67%React
17%Angular
0%Vue.js
17%Svelte
6 votes • Final results
1
91
📚 "Just implemented a basic stack data structure in #JavaScript. Here's a sneak peek:" class Stack { constructor() { this.stack = []; } // Pushes a value onto the end of the stack push(value) { this.stack.push(value); } // Removes and returns the value at the end of the stack pop() { if (!this.isEmpty()) { return this.stack.pop(); } } // Returns the value at the end of the stack without removing it peek() { return this.stack[this.stack.length - 1]; } // Checks if the stack is empty isEmpty() { return this.stack.length === 0; } // Returns the length of the stack getLength() { return this.stack.length; } }
1
85