Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

// The solution test in JavaScript

var a = 10, b = 20; // Declare variable values

a = b; // Assign b to a

console.log(a); // Output a to the console

console.log(b); // Output b to the console

// Log: 20

// Log: 20



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: