Skip to content

Instantly share code, notes, and snippets.

//摄氏度转换为华氏度
var c=39;
var f=32+c*1.8;
console.log(c+"摄氏度等于"+f+"华氏度");
//交换两个变量的值
var alice=8;
var bob=5;
var t=alice;
alice=bob;