IO test 1

author: krm
created: 2026-05-20
status: alpha

1. 🪧 Summan av två tal?

let a = Number(prompt("A?"));
let b = Number(prompt("B?"));
console.log(a+b)

1. 🐾 Test 1

> 1
> 1

2. 🐾 Test 2

> 2
> 3

2. 🐾 Test 3

> 9
> 2

2. 🪧 Summan av två texter?

let a = prompt("A?");
let b = prompt("B?");
console.log(a+b)

1. 🐾 Test 1

> 1
> 1

2. 🐾 Test 2

> 9
> 2

3. 🪧 Summan av två olika input?

let a = prompt("A?");
let b = Number(prompt("B?"));
console.log(a+b*2)

1. 🐾 Test 1

> 1
> 1

2. 🐾 Test 2

> 9
> 2