Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-138438 | A weakness has been identified in RackTables up to 0.22.0. This vulnerability affects the function init_config of the file wwwroot/inc/install.php of the component Installer. This manipulation of the argument mysql_username causes code injection. The attack can be initiated remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.CVSS 6.9CVE-2026-138437 | A security flaw has been discovered in Tiandy Easy7 Integrated Management Platform up to 20261031. This affects the function getAllControllers of the file /Easy7/rest/deGate/getAllControllers. The manipulation of the argument serviceId results in sql injection. It is possible to launch the attack remotely. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any wCVSS 9.4CVE-2026-138436 | A vulnerability was identified in TRENDnet TEW-824DRU 1.00b18. Affected by this issue is some unknown functionality of the file /cgi/ssi. The manipulation of the argument syslog_server leads to os command injection. It is possible to initiate the attack remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.CVSS 5.9CVE-2026-105968 | Improper Authorization vulnerability in Apache Camel Netty HTTP component. This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.2. In camel-netty-http, the roles declared in a security constraint were compared to the authenticated roles using substring matching rather than exact comparison. A role whose name merely contained a required role as a substring could therefore satisfy a constraint it should not, so a caller coulCVSS 7.5CVE-2026-105966 | Missing Authorization vulnerability in Apache Camel Undertow component. This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.2. In camel-undertow, the configured securityProvider and allowedRoles were not enforced on WebSocket endpoints, so a client could open a WebSocket consumer without passing the authentication and role checks that apply to the HTTP endpoints. A route that the application intended to protect could therCVSS 5.3CVE-2026-103873 | Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Camel Spring-Ws component. This issue affects Apache Camel: from 4.0.0 before 4.18.6, from 4.19.0 before 4.22.2. In camel-spring-ws, the configured HeaderFilterStrategy was not applied to outbound SOAP responses, so Camel-internal headers (names beginning with Camel, camel or org.apache.camel.) that were set on the exchange during routing were copied into the SOAP responCVSS 6.9CVE-2026-138431 | A vulnerability was detected in kalcaddle kodbox up to 1.68.10. The impacted element is the function fileGet of the file app/controller/explorer/share.class.php of the component Explorer. The manipulation of the argument path results in server-side request forgery. The attack may be launched remotely. The exploit is now public and may be used.CVSS 8.8CVE-2026-119226 | Missing authentication for command in the license protocol of Reprise Software Reprise License Manager allows an unauthenticated remote attacker to create or truncate files via attacker-controlled logging directives.  The command overwrites the rlm.opt options file with attacker-supplied content, which the daemon immediately parses without requiring a restart. Directives accept file paths and cause the daemon to open the specified files for writing. Existing
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

JavaScript Functions: Basic Concepts You Should Know

Introduction When learning JavaScript, one of the first concepts you’ll encounter is functions. Functions are the building blocks of JavaScript. They help you o…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 3 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung




Introduction



When learning JavaScript, one of the first concepts you’ll encounter is functions.



Functions are the building blocks of JavaScript. They help you organize code, avoid repetition, and make your programs easier to understand. If variables store data, functions define behavior.



You’ll use functions everywhere: handling user input, processing data, calling APIs, and structuring your code.



In this article, we’ll cover:




  1. What is a function

  2. Function declarations

  3. Function expressions

  4. Parameters vs arguments

  5. Return values

  6. Arrow Functions

  7. Why Functions Matter






1. What is a Function?



A function is a reusable block of code designed to perform a specific task.



Think of it like a machine:



Input → Process → Output




function greet() {
console.log("Hello!");
}






To run the function, you call it:




greet(); // Hello!









2. Function Declaration



This is the most common way to define a function:




function add(a, b) {
return a + b;
}






💡 Explanation:




  • Defined using the function keyword

  • Can be called before it is declared (because of hoisting)



Key parts:

function → keyword

add → function name

a, b → parameters

return → output value




add(); // ✅ Works!

function add(a, b) {
return a + b;
}






💡 Why does this work?



JavaScript reads the code first, and function declarations are stored in memory during the initial phase (hoisting).

That’s why you can call the function even before it’s defined in the code.





3. Function Expressions



Functions can also be stored in variables:




function add(a, b) {
return a + b;
}






💡 Explanation:




  • Assigned to a variable

  • Cannot be used before initialization




add(); // ❌ Error: Cannot access before initialization

const add = function (a, b) {
return a + b;
};






💡 Why does this cause an error?



Because:



const add has not been initialized yet when it is called.

The function itself is not in memory at that moment.





4. Parameters vs Arguments



This is a common beginner confusion:




  • Parameter: variable in function definition

  • Argument: actual value passed in



function greet(name) { // parameter
return `Hello, ${name}`;
}

greet("Dini"); // argument







5. Return Values



Functions can send data back using return.




function multiply(a, b) {
return a * b;
}

const result = multiply(2, 3);
console.log(result); // 6






If you don’t use return, the function returns undefined.






6. Arrow Functions (Modern Syntax)



A shorter way to write functions:




const add = (a, b) => {
return a + b;
};






Even shorter (implicit return):




const add = (a, b) => a + b;









7. Why Functions Matter



Functions help you:




  • Avoid repeating code (DRY principle)

  • Make code more readable

  • Break problems into smaller pieces

  • Reuse logic easily






Conclusion



Functions are fundamental to writing JavaScript effectively.



Once you understand:




  • how to define them

  • how data flows in/out

  • and how to reuse them



you’ve unlocked a huge part of programming.






References



https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions

https://javascript.info/function-basics

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Dyskusja społeczności i komentarze

🌐 Dołącz do głównego czatu

Rozpocznij dyskusję w strumieniu transmisji Social Chat lub prześlij wyżej wkład ekspercki przez formularz uzupełnień.

Community Rating & Social Proof
⭐ Ocena czytelników
–
Ø / 5.0
Brak recenzji czytelników
Czy ten artykuł był pomocny?
0
Dodaj swoją ocenę
Ocena szczegółowa (opcjonalnie)
Treść i jakość
Źródło i wiarygodność
Aktualność
Security Briefing Bezpłatnie · Wypisanie 1 kliknięciem

Intelligence Digest - bezpłatnie

Codziennie najważniejsze wiadomości bezpieczeństwa · można pobrać w każdej chwili

Powiązany klaster opowieści i źródła (wektor AI)

6 Cluster
42 źródeł
The Best Cyber Monday Sonos Deals (2026): Up to 34% Off
WIRED 33 minuty temu
41 kolejnych źródeł
CNET11 dni temu109 Cyber Monday Deals Under $50 That Are Actually Worth Buying, From $18 AirTags to $38 Sony Headphones CNET11 dni temuThe Gift of the Year Is $100 Off for Cyber Monday: How to Get the Oura Ring 5 for Less CNET9 dni temuCyber Monday Knocks $300 Off Roku’s 55-Inch Pro Series OLED TV CNET2 dni temuLG’s Gallery TV Is $100 Off for Cyber Monday if You’re Looking For an Alternative to Samsung’s Frame TV WIRED59 minut temuLast Call for Black Friday iPad Deals (2026): Save Up to $150 WIRED45 minut temuBest Cyber Monday AirPods Deals (2026): Up to $150 Off Latest from TechRadar1 godzinę temuHMV's Cyber Monday 4K Blu-ray sale ends tonight — here are 15 discs on offer that I recommend Latest from TechRadar1 godzinę temuDell's Nvidia RTX mobile workstation is down to £499 for Cyber Monday — and the official A-grade refurb is an easy recommendation for creative pros Latest from TechRadar1 godzinę temuThe best Cyber Monday Sennheiser deals: buds, cans 'bars and more AppleInsider News1 godzinę temuApple's 1TB M5 13-inch MacBook Air is $400 off for Cyber Monday, now $1,199 The Mac Observer57 minut temuMSI Crosshair A16 HX drops $405 to $2,294 for Cyber Monday with 32GB of RAM The Linux Foundation1 godzinę temuThe Linux Foundation: Cyber Week Deals: Save Up to 65%! Latest from TechRadar1 godzinę temuThis tri-band Wi-Fi 7 travel router with 5G is on sale this Cyber Monday CNET1 rok temuThe $179 Apple Watch SE 3 Is One of the Best Deals Black Friday Still Around On Cyber Monday CNET11 dni temuApple MacBook Neo Is Back to $599 for Cyber Monday WIRED1 godzinę temuThe Best Cyber Monday Streaming Deals (2026): Up to 62% Off Disney, HBO, and More Latest from TechRadar1 godzinę temuThese record-low Samsung Galaxy S26 prices are the best Cyber Monday deals I've seen so far WIRED1 godzinę temuThe Best Cyber Monday Gaming Deals I’ve Found (2026) AppleInsider News1 godzinę temuApple Watch Ultra 4 hits record-low $649 with Cyber Monday deal The Mac Observer1 godzinę temuAlienware 15 is $1,099.99 for Cyber Monday, $399 under a 15-inch MacBook Air DEV Community1 godzinę temu10 Mac Apps I’d Actually Pay for This Cyber Monday IT Security News1 godzinę temuCYBER BRIEFING | NOVEMBER 30, 2026 Latest from TechRadar1 godzinę temuGet Disney+ and Hulu for less than $5 with this Cyber Monday deal Latest from TechRadar1 godzinę temuReady to De-Google Your Life? This Cyber Monday deal gets you a full VPN, encrypted email, and password manager for just $1 CNET20 dni temuThe Best Nintendo Switch 2 Cyber Monday Deal Just Got Even Cheaper CNET17 dni temuGrab Bose’s Smart Ultra Soundbar for $370 Off for Cyber Monday, Plus 8 More Bose Deals Worth Shopping WIRED1 godzinę temuBest CurrentBody Cyber Monday: Save 20 Percent Sitewide (2026) AppleInsider News1 godzinę temuOWC Thunderbolt Go Dock for $148.88 beats Amazon's Cyber Monday deal Latest from TechRadar2 godziny temuCyber Monday Oura Ring deals: Save on Oura Ring 5 and Ring 4 in all finishes Latest from TechRadar2 godziny temuAsus' answer to the MacBook Air: The £1,100 Zenbook 14 is now on sale for £650 this Cyber Monday Latest from TechRadar2 godziny temuThe best Cyber Monday laptop deals live: the best deals and expert buying advice on MacBooks, Chromebooks, Dell laptops, and much more Latest from TechRadar2 godziny temuBose topped our blind Bluetooth speaker showdown, and this Cyber Monday deal makes it worth buying Latest from TechRadar2 godziny temuNo subscriptions needed: our favorite Swann cameras and doorbells are going cheap for Cyber Monday WIRED2 godziny temu19 Best Buy Cyber Monday Deals on Hot Tech (2026): Up to 65% Off The Verge2 godziny temuCyber Monday is your last chance to save big on Hulu, Disney Plus, and HBO Max The Verge1 godzinę temuL’Oreal’s fancy hairdryer is 25 percent off for Cyber Monday Latest from TechRadar2 godziny temuDell's Cyber Monday sale is live — here are 7 laptop deals I'd recommend on the XPS 13, 14s, 16 Plus, and more with up to $600 off Latest from TechRadar2 godziny temuGet NFL Playoffs ready: 85% Off IPVanish this Cyber Monday VPN deal CNET1 miesiąc temuWith This Cyber Monday Apple Deal, Save $300 on MacBook Air and 46 Other Offers CNET9 dni temuWe Found the 26 Actual Best Cyber Monday Anker Deals, From $20 Soundcore Earbuds to $500 Off a Eufy Robovac CNET4 dni temuCyber Monday Deals Have CNET Readers Shopping For iPhones, iPads, Pokemon Cards and 3D Printers
Podobne wkłady
🔍 Verwandte News

Auch interessante Nachrichten JavaScript Functions: Basic Concepts You Should Know

Thematisch verwandte Begriffe: JavaScript, Functions, Basic, Concepts · 6 Treffer

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Laden...

Składki są załadowane...

Laden...

Filmy są załadowane...

Uwagi Komentarze są ładowane..
Rysunek do aktualizacji
Widżety i tematy
Ładowanie widżetów…
Następny wpis