Tell us what’s happening:
Halo, saya sedang mengerjakan tantangan “Introducing Variables”.
Saya sudah membuat variabel bot dan mencoba membuat botIntroduction menggunakan string concatenation:
let bot = “Robo”;
let botIntroduction = "My name is " + bot + “.”;
console.log(botIntroduction);
Output yang muncul di konsol sudah “My name is Robo.”, tapi saya masih gagal di test.
Apakah ada yang salah dengan spasi atau tanda titik, atau saya melewatkan sesuatu?
Your code so far
// User Editable Region
let bot = "Robo";
let botLocation = "Lab 1";
console.log(bot);
console.log(botLocation);
let botIntroduction = "My name is " + bot + ".";
console.log(botIntroduction);
// Log keempat: bisa menampilkan informasi tambahan, di sini kita ulang botIntroduction
console.log(botIntroduction);
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Challenge Information:
Build a Greeting Bot - Step 7