This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//摄氏度转换为华氏度 | |
var c=39; | |
var f=32+c*1.8; | |
console.log(c+"摄氏度等于"+f+"华氏度"); | |
//交换两个变量的值 | |
var alice=8; | |
var bob=5; | |
var t=alice; | |
alice=bob; |