Zum Hauptinhalt springen
LIVE
CVSS 9.3CVE-2026-138670 | A weakness has been identified in TOTOLINK X6000R up to 9.4.0cu.1458_B20250708. The impacted element is the function setStaticDhcpRules/arp_bind of the file /usr/sbin/shttpd. Executing a manipulation of the argument ip can lead to authentication bypass using alternate channel. The attack can be launched remotely.CVSS 5.3CVE-2026-137027 | Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0, Enclave OS Mini's wasmtime_mmap_remap implementation ignored old_size, returned success without reallocating, and zeroed the page-aligned new_size at the original address. When wasmtime requested growth beyond the allocation created by wasmtime_mmap_new, the zero-fill wrote out of bouCVSS 7.5CVE-2026-102735 | mcp-server-kubernetes is a Model Context Protocol server for Kubernetes cluster management. Prior to version 4.0.8, the SSE transport of mcp-server-kubernetes does not validate the Host header of incoming requests, which makes it vulnerable to DNS rebinding. This issue has been patched in version 4.0.8.CVSS 7.7CVE-2026-137026 | Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.57.0 and enclave-cluster version 0.8.0, Enclave OS Mini executed a WASM application's synchronous https.fetch call to completion on the enclave's single event loop while the host serviced enclave RPC on one thread. A malicious co-tenant application, or an application fetching an attacker-selected URL, could connect to a serCVSS 7.5CVE-2026-137025 | Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini version 0.26.0, enclave-os-mini-wasm version 0.55.0, enclave-vaults version 0.34.0, and enclave-cluster version 0.8.0, Enclave OS Mini's RA-TLS ingress buffered decrypted plaintext until parse_http_request found a complete HTTP header section. MAX_HEADERS limited only the number of fields, so an unauthenticated remote peer could withholdCVSS 7.5CVE-2026-137024 | Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.54.0 and enclave-cluster version 0.8.0, Enclave OS Mini's check_configure_authz function returned success before the app_auth bearer check when a non-vault-backed WASM application was loaded without both a WasmLoad app_id and an owners team. Any caller able to reach the application's declared configuration API function coulCVSS 6.3CVE-2026-137023 | Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini version 0.26.0, enclave-os-mini-wasm version 0.56.2, enclave-vaults version 0.34.0, and enclave-cluster version 0.8.0, Enclave OS Mini trusted host-supplied time through get_current_time for security decisions. A malicious SGX host could return an old or zero time so an expired FIDO2 session token remained valid, a vault key whose TimeWinCVSS 7.4CVE-2026-137022 | Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.55.0 and enclave-cluster version 0.8.0, Enclave OS Mini's get_user_roles_with_bootstrap logic assigned the admin role to the first FIDO2 user seen while an application's role-store manifest was empty. Because FIDO2 registration required no prior identity and applications using OIDC could leave this separate manifest empty,
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
29 Quellen
Need cloud storage and a VPN? This Cyber Monday bundle gives you both —plus scam protection
Latest from TechRadar vor 25 Min.
28 weitere Quellen
Latest from TechRadarvor 16 Min.Cyber Monday home office deals 2026 live — last few hours left to save on workspace upgrades CNETvor 1 JahrI Wear My Beats Studio Pro Everyday, and They’re 50% Off Now for Cyber Monday CNETvor 46 Min.Save Up to $1,300 on Select Midea Fridges During Best Buy’s Cyber Monday Sale Latest from TechRadarvor 57 Min.These 4 TVs are some of the best I've tested in 2026 — and they all have a deal on Cyber Monday Latest from TechRadarvor 1 Std.Cyber Monday SSD deals: big savings on drives from Samsung, Sandisk, Lexar, and more CNETvor 8 MonatenSnap Up a New iPhone 16E for Free With a Metro by T-Mobile Plan This Cyber Monday CNETvor 3 TagenWant a Big Screen Without a TV? Nab Our Favorite 4K Projector With a $1,500 Cyber Monday Discount Latest from TechRadarvor 1 Std.Grab a miniPC powered by a Ryzen 5400U for less than $200 this Cyber Monday Latest from TechRadarvor 1 Std.Dell's £90 monitor is the one I'd buy for working from home this Cyber Monday — the 27-inch display features an IPS panel, 1080p Full HD resolution, and a 240Hz refresh rate that's perfect for smoothly scrolling through documents Latest from TechRadarvor 1 Std.Cyber Monday tablet deals: last-minute savings on iPads, Galaxy Tabs, Alexa Tablets, and more Latest from TechRadarvor 1 Std.Last chance: get the greatest cheap wired earbuds I’ve ever tested at a record-low price before Cyber Monday ends CNETvor 7 MonatenScams Are Getting Sneakier But This 70% Off Webroot Cyber Monday Deal Has You and Your Family Covered for Less CNETvor 21 Tagen18 Cyber Monday Pokemon Deals on Cards, Lego and Merch CNETvor 5 Tagen19 T-Mobile Cyber Monday Deals Worth Switching for, Including a Free iPhone 18 Pro and Galaxy Z Fold 8 MacDailyNewsvor 1 Std.Last chance: Apple TV drops to $6.99/month for up to six months; Cyber Monday deal ends tonight Latest from Windows Centralvor 1 Std.The best deals on GTA 6 this Cyber Monday (yes, they exist!) Latest from TechRadarvor 1 Std.17 sub-£50 gadgets that would make the best gifts — and they're all discounted for Cyber Monday AppleInsider Newsvor 1 Std.At just $249, Beats 360 are a great Cyber Monday alternative to AirPods Max 2 CNETvor 26 TagenThese Cyber Monday PS5 Deals Will Save You Up to $110 on Top-Rated PS5 Controllers, Headset and Games CNETvor 24 TagenSave Up to $1300 With Costco’s Cyber Monday 2026 Deals on Gadgets From Apple, Ninja, Samsung and More The Vergevor 2 Std.The best Cyber Monday Apple deals on watches, iPads, and other gear Latest from Windows Centralvor 2 Std.HP's $429 OmniBook 5 is the new laptop deal to beat on Cyber Monday Latest from TechRadarvor 2 Std.Get this Dell XPS 13 Cyber Monday deal for under $500 before it sells out again AppleInsider Newsvor 2 Std.Put an iPad mini 7 in your bag while it's $120 off and just $479 for Cyber Monday Latest from TechRadarvor 2 Std.Corsair Vengeance 32GB DDR5 memory kit with RGB lighting is one of the cheapest we could find over Cyber Monday — it's £408 as RAM prices continue to surge Latest from TechRadarvor 2 Std.Cyber Monday coffee deals: 5 cheap brewers personally tested and recommended by a certified barista CNETvor 5 TagenMy Ride-or-Die Beats Earbuds Are Better Than AirPods and $80 Less for Cyber Monday CNETvor 3 Tagen14 Best Cyber Monday Gift Card Deals on Apple, Wayfair, Meta Quest and More
Ä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