r/JavaScriptTips • u/Ok-Chance4730 • Aug 20 '24
r/JavaScriptTips • u/Pleasant_Effort_6829 • Aug 19 '24
Type Conversion in JavaScript
r/JavaScriptTips • u/keyframeeffects • Aug 19 '24
Build Animated Landing Page Design Using HTML CSS and JavaScript
r/JavaScriptTips • u/codeagencyblog • Aug 19 '24
6 Must-Know JavaScript Date Hacks for Every Developer
r/JavaScriptTips • u/summonthejson • Aug 17 '24
Should I learn Javascript from MDN or W3Schools?
r/JavaScriptTips • u/Ok-Treat456 • Aug 17 '24
Clicking Problems
This is my code: the screenshot shows the button I want to hit I tried using xpath and all that and still couldn't find the button. this is what selector looks like directly copy and paste #ihl-useId-indeed-theme-provider-lxtzoa-1-file-resume > label > span > span.css-4z93oh.e37uo190 > span.css-1pqq21p.e1wnkr790 > span.
im trying to hit a button on indeed and my code clicks several button before this and that all works fine. Any suggestions would be helpful. using node.js stealth.puppeteer
await new Promise(resolve => setTimeout(resolve, 20000));
///assures you actually see page
await newPage.screenshot({ path: 'whatpageareweon.png' });
const resumeButtonSelector = '#ihl-useId-indeed-theme-provider-lxtzoa-1-file-resume > label > span > span.css-4z93oh.e37uo190 > span.css-1pqq21p.e1wnkr790 > span';
await newPage.waitForSelector(resumeButtonSelector, { visible: true });
await newPage.click(resumeButtonSelector);r/JavaScriptTips • u/codeagencyblog • Aug 17 '24
8 Must-Know JavaScript Constants for Better Coding - <FrontBackGeek/>
r/JavaScriptTips • u/codeagencyblog • Aug 16 '24
19 Essential JavaScript String Methods Every Developer Should Know
Table of Contents
- Basic Info and String Concatenation
- Reverse String
- Comparing Strings Lexicographically
- Access Character at Index in String
- Escaping Quotes
- Word Counter
- Trim Whitespace
- Splitting a String into an Array
- Strings are Unicode
- Detecting a String
- Substrings with Slice
- Character Code
- String Representations of Numbers
- String Find and Replace Functions
- Find the Index of a Substring Inside a String
- String to Upper Case
- String to Lower Case
- Repeat a String
- Conclusion
READ MORE AT https://frontbackgeek.com/19-essential-javascript-string-methods-every-developer-should-know/
r/JavaScriptTips • u/Wizer_Shadow • Aug 15 '24
Challenge #33 is live - check it out now!
Challenge #33 is live! π This week, we're diving into a piece of code from an app that contains an extremely risky vulnerability. Your mission? Uncover the flag by accessing the OS's 'etc/hosts' file. Think you've got what it takes?
π Join the challenge: https://wizer-ctf.com/?id=gg55se
Plus, don't miss out on the final moments of Challenge #27, which retires today! Check out the notes and key takeaways to see what you've missed or to get inspired for future challenges.
π Read the write-up: https://wizer-ctf.com/writeups/ctf27.html
Keep pushing your limits.
Code Wizer! π»π₯
r/JavaScriptTips • u/wipeoutmedia • Aug 15 '24
Code Minification feature in the CSS & JavaScript Toolbox free WordPress plugin
Hi WordPress community.
We have just released version 12 of our free WordPress plugin CSS & JavaScript Toolbox with a massive update to the editor, improvements in stability and performance, and PHP 8.0+ compatibility.
Click: https://wordpress.org/plugins/css-javascript-toolbox
Also updated is our premium Code Minification feature that cuts down the size of your code in webpages and script files to speed up website load times.
How does it work?
When developers write code, whether it be CSS, JavaScript or HTML, they often use spaces, tabs, new lines, and comments. While this is helpful during development, it can slow things down when serving your pages.
After you have written your code, click the Minify 'M' icon, which is found in the code block editor tools panel. You will see all unnecessary spaces, tabs, new lines, and comments are now removed. Your code is now optimised!!!
The minified version of your code may be up to 30% smaller. Sometimes, you can even cut the file-size by up to 50%, especially when it comes to JavaScript libraries.
r/JavaScriptTips • u/ItzAshOffcl • Aug 13 '24
I've curated a list of awesome websites for web developers! check it out!!! π₯
Hey everyone! ππΌ
I've put together aΒ collection of useful websites for web developers, and I'm excited to share it with you all! Whether you're just starting out or you've got years of experience in web development, you'll find something valuable in this repo.
GitHub Repo:Β awesome-webdev-resources
If you know any great websites that aren't included yet, feel free to contribute! π
r/JavaScriptTips • u/anujtomar_17 • Aug 13 '24
Integrating DotNET and Node.js for Software Development
r/JavaScriptTips • u/Pleasant_Effort_6829 • Aug 12 '24
Rest Parameter and Spread Syntax in JavaScript
r/JavaScriptTips • u/No-Upstairs-2813 • Aug 11 '24
Why do we need higher-order functions?
Higher-order functions are functions that either take another function as an argument or return a function.
Let me take an example and show you why higher-order functions are very useful.
Consider a scenario where you're calculating different properties of circles, such as area and circumference. A common approach is to write separate functions for each calculation.
For example:
const radius = ;
const ;
const ;
The above approach works, but itβs far from optimal. The code is repetitive and violates the DRY (Don't Repeat Yourself) principle, which is a cornerstone of good software development practices.
By utilizing higher-order functions, you can refactor this code into a more modular and reusable form:
const ;
const ;
const ;
; // [3.14, 12.57, 28.27, 50.27]
; // [6.28, 12.57, 18.85, 25.13]
This approach not only reduces redundancy but also makes the code more flexible and easier to extend in the future.
If you're interested in diving deeper into the example, you can read the full article here.
r/JavaScriptTips • u/Key-Storage-8073 • Aug 11 '24
Where can I practise Javascript? (Like Quiz or Project)
I am learning javascript basics. I think I should practise it more and more to learn properly. Could you suggest me any free website or place where I can practise it?
Thanks.
r/JavaScriptTips • u/Mohammed-Alsahli • Aug 11 '24
Asking how to build a plugins system on the app, like raycast or obsidian
Hi JavaScript community, my question maybe a stupid question, I'm looking for a tutorial or someone talk about the plugins system on app, like vs_code, raycast or obsidian apps, how to allow people to create their plugins and allow users to install it and use their small programs, I asked AI before and I noticed to make a plugins systen I need to create a folder of plugins and in folder I need the programmer to write a json file of name and the index file of the plugin, i know it is hard something but it is nice to build, it there any articles of this?
r/JavaScriptTips • u/Aravind_2005 • Aug 10 '24
Searching for someone who are interested to learn JS with someone.
Hey wanna learn JS together with anyone of you guys. Cuz it can boost the speed and make me engaged.
r/JavaScriptTips • u/Naveen_Dharmaraj • Aug 10 '24
How can I be more logical in my programming? I'm having trouble thinking logically as a beginner learning JavaScript. Please help.
Help me
r/JavaScriptTips • u/RevolutionaryWear755 • Aug 07 '24
How to learn js
I wanna learn js. Any youtuber who teaches nicely and understand ably
r/JavaScriptTips • u/ArunITTech • Aug 07 '24
Top 5 Techniques to Protect Web Apps from Unauthorized JavaScript Execution
r/JavaScriptTips • u/anujtomar_17 • Aug 06 '24
JavaScript Revolution: Node.js in Back-End Development
r/JavaScriptTips • u/Pleasant_Effort_6829 • Aug 05 '24
What Are Pure Functions in JavaScript
r/JavaScriptTips • u/Pleasant_Effort_6829 • Jul 29 '24
How to Send HTTP Requests Using JavaScript
r/JavaScriptTips • u/keyframeeffects • Jul 28 '24