🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 2 Min Lesezeit
0

jsBasics_Practice

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




Basics






What are the types of these variables listed below ? Verify this with typeof and output the result to the console:






CODE
let str1 = 'Laurence';
console.log(typeof (str1)); //string
let str2 = "Svekis";
console.log(typeof (str2)); //string
let val1 = undefined;
console.log(typeof (val1)); //undefined
let val2 = null;
console.log(typeof (val2)); //object
let myNum = 1000;
console.log(typeof (myNum)); //number









What data type is the following variable?






CODE
const c = "5"; //string
const d = 91; // number









Which one is generally better, line 1 or line 2?






CODE
let empty1 = undefined; //line 1
let empty2 = null; //line 2









What is the console output for the following?






CODE
let a1 = "Hello";
a1 = "world";
console.log(a1); //world









CODE
let a2 = "world";
let b2 = Hello ${a2}!;
console.log(b2); // Helloworld









What is the value..?






CODE
let a4 = 5;
let b4 = 70;
let c4 = "5";
b4++;
console.log(b4); //71






let result = 3 + 4 * 2 / 8; // 4, doesn't print anything as we didn't log the result.




CODE
let firstNum = 5;
let secondNum = 10;
firstNum++;
secondNum--;
let total = ++firstNum + secondNum;
console.log(total); //16
let total2 = 500 + 100 / 5 + total--;
console.log(total2); // 536









CODE
const a = 5;
const b = 10;
console.log(a > 0 && b > 0); // true
console.log(a == 5 && b == 4); // false
console.log(true || false); // true
console.log(a == 3 || b == 10); // true
console.log(a == 3 || b == 7); // false









Create an array to use as your shopping list with 3 items: "Milk," "Bread," and



"Apples". Check your list length in the console. Update "Bread" to "Bananas". Output your entire list to the console.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
1 Quelle
Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
1 Quelle
Major AI platforms go down in unprecedented simultaneous outage
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten jsBasics_Practice

Thematisch verwandte Begriffe: jsBasicsPractice · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...