Zum Hauptinhalt springen
LIVE
CVSS 5.3CVE-2026-138410 | A weakness has been identified in BookStackApp BookStack up to 26.09.1. This impacts the function restrictEntityRelationQuery of the file app/Permissions/PermissionApplicator.php of the component Comments API. Executing a manipulation can lead to incorrect authorization. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 26.09.2 will fix this issue. This patch is called 7CVSS 5.3CVE-2026-138678 | The AIL Framework (ail-project/ail-framework) allowed authenticated users to configure arbitrary outbound HTTP/HTTPS destinations for MISP event export and WebHook notifications. The prior validation only verified that the URL used an http or https scheme and contained a netloc, without checking whether the resolved IP address was public. This permitted a user to direct the server to make requests to internal or private network addresses (loopback, RFC 1918,CVSS 10.0CVE-2026-138407 | A vulnerability has been found in Beetel 777VR1 Broadband Router 01.00.09/01.00.09_55. This issue affects some unknown processing of the component Router Management Console. The manipulation leads to improper authentication. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.CVSS 6.9CVE-2026-138402 | A vulnerability was determined in anshikasharma09 Blood-Bank-Management-System up to 39e2aab0cd81a811e520cb63caab68d9dc28583f. Affected by this issue is some unknown functionality of the file deleteit.php. Executing a manipulation of the argument Search can lead to sql injection. The attack may be launched remotely. The exploit has been publicly disclosed and may be utilized. This product operates on a rolling release basis, ensuring continuous delivery. ConCVSS 8.7CVE-2026-127170 | The affected products contain a memory leak in the packet processing of the network stack. An unauthenticated remote attacker can send specially crafted UDP packets to exhaust available packet buffers. Successful exploitation results in a denial-of-service condition in which the affected device no longer processes any network traffic.CVSS 8.7CVE-2026-127169 | The affected products do not properly handle certain return values generated during TCP connection processing. An unauthenticated remote attacker can send specially crafted TCP connection requests that cause the affected service to stop listening for new connections, resulting in a denial-of-service condition.CVSS 8.6CVE-2026-127167 | The CmpLinuxRTDiag component of the CODESYS Control runtime system for Linux performs improper length checking when handling PLC shell requests. By sending a specially crafted request, an authenticated, high-privileged remote attacker can exploit this flaw, which may result in arbitrary code execution on the affected Linux device.CVSS 9.3CVE-2026-127148 | The CmpChannelMgr and CmpChannelMgrEmbedded components of the CODESYS Control runtime system performs improper length checking when handling online service packets, resulting in an out-of-bounds write. By sending a specially crafted packet, an unauthenticated remote attacker can exploit this flaw to execute arbitrary code on the affected product.
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:

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

6 Cluster
27 Quellen
Cyber Monday TV deals live: I'm a TV reviewer, and I'm picking the offers you can't miss
Latest from TechRadar vor 29 Min.
26 weitere Quellen
Latest from TechRadarvor 20 Min.Sony's newest XM4C headphones are heavily discounted for Cyber Monday CNETvor 23 TagenSave Up to 57% With Best Buy’s Cyber Monday OLED TV Deals On on LG, Samsung and Sony CNETvor 4 TagenThese Cyber Monday MacBook Deals Knock Up to $500 Off, Including Neo and PROLED Models AppleInsider Newsvor 25 Min.Cyber Monday deals drop Apple's M5 MacBook Air to $999, save up to $400 Latest from TechRadarvor 45 Min.I found the cheapest mono laser printer for Cyber Monday — it's £61 and perfect for printing documents in the home office and small business Latest from TechRadarvor 43 Min.Print thousands of pages with this affordable Canon MegaTank printer - now 42% cheaper on Cyber Monday Latest from TechRadarvor 42 Min.Overwhelmed by Cyber Monday VPN sales? Just buy this and thank me later Latest from TechRadarvor 32 Min.This Cyber Monday deal is the fastest PC under $400 with Ryzen 7, 16GB RAM, and 512GB SSD Latest from TechRadarvor 47 Min.Cyber Monday luxury office chair deals 2026: 9 tested premium picks from Herman Miller, Steelcase, and more WIREDvor 50 Min.The 7 Best Cyber Monday Deals on Expert-Tested Laptops (2026): Up to $470 Off The Mac Observervor 52 Min.MSI Aegis R2 drops to $2,660 for Cyber Monday, $639 under a 2TB Mac Studio PC-WELTvor 46 Min.Nur noch heute: Die besten Laptop-Angebote zum Cyber Monday bei Amazon The Vergevor 1 Std.The OLED gaming monitor deals are plentiful during Cyber Monday Latest from TechRadarvor 1 Std.The best Cyber Monday Apple Watch deals, picked by a smartwatch reviewer Latest from TechRadarvor 1 Std.Walmart's Cyber Monday event is live — I've found the 20+ best deals on TVs, laptops, Apple products, headphones, appliances, and much more CNETvor 6 TagenSave 50% Off HBO Max, Now Just $5.49 a Month, With This Cyber Monday Deal CNETvor 5 TagenMicro Center’s Cyber Monday Deals Are Live. You and Shop and Save on 3D Printers, Desktops and SSDs Latest from TechRadarvor 1 Std.Cyber Monday air fryer deals: today's best offers on Ninja Foodi, Crispi, and Doublestack fryers The Mac Observervor 1 Std.HyperX OMEN 15 drops $420 to $1,349.99 for Cyber Monday, $449 under a 1TB Air 15 Latest from TechRadarvor 2 Std.Cyber Monday UK smartwatch deals 2026 — all picked by a fitness editor Latest from TechRadarvor 2 Std.Cyber Monday Kindle deals: save big on Kindle Scribe, Colorsoft, and Paperwhite ereaders Latest from TechRadarvor 1 Std.Get a fast, upgradable AMD-based mini PC from ACEMAGICIAN for under $500 in the Cyber Monday sale Latest from TechRadarvor 1 Std.Cyber Monday soundbar deals: savings on Sonos, Sony, Samsung and more Latest from TechRadarvor 2 Std.Best Buy Cyber Monday sale 2026 — 21 top deals on Apple, Switch 2, Shokz, OLED TVs, Samsung, KitchenAid, LG, and more Latest from TechRadarvor 2 Std.Cyber Monday GTA 6 deals — all the best prices on the game, bundles, and experience-enhancing peripherals The Vergevor 2 Std.The very fun Nex Playground is 30 percent off during Cyber Monday
14 Quellen
CVE-2026-81056 | Dell Secure Connect Gateway up to 5.36.00.00 log file (WID-SEC-2026-4842)
VulDB Updates vor 1 Std.
13 weitere Quellen
VulDB Updatesvor 1 Std.CVE-2026-81058 | Dell Secure Connect Gateway up to 5.36.00.00 xml external entity reference (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81057 | Dell Secure Connect Gateway up to 5.36.00.00 privileges management (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81061 | Dell Secure Connect Gateway up to 5.36.00.00 missing authentication (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81059 | Dell Secure Connect Gateway up to 5.36.00.00 log file (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81060 | Dell Secure Connect Gateway up to 5.36.00.00 path traversal (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81064 | Dell Secure Connect Gateway up to 5.36.00.00 log file (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81063 | Dell Secure Connect Gateway up to 5.36.00.00 os command injection (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81062 | Dell Secure Connect Gateway up to 5.36.00.00 sql injection (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81066 | Dell Secure Connect Gateway up to 5.36.00.00 sql injection (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81065 | Dell Secure Connect Gateway up to 5.36.00.00 format string (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81068 | Dell Secure Connect Gateway up to 5.36.00.00 certificate validation (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81067 | Dell Secure Connect Gateway up to 5.36.00.00 information disclosure (WID-SEC-2026-4842) VulDB Updatesvor 1 Std.CVE-2026-81069 | Dell Secure Connect Gateway up to 5.36.00.00 random values (WID-SEC-2026-4842)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten JavaScript Functions: Basic Concepts You Should Know

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

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag