随笔分类 -  Javascript

摘要:究竟什么是回调函数(Callback),网上有许许多多的文章,大部分看得人云里雾外,这些文章大概分成两类,第一类堆砌了太多的术语,基本上不明白术语就没法看,另一类反过来,不讲术语,完全是举一些脱离编程的生活化例子来类比,看的人更加晕头转向。 作为JS的核心,回调函数和异步执行是紧密相关的,不跨过这个 阅读全文
posted @ 2023-06-29 09:24 Oops!# 阅读(155) 评论(0) 推荐(0) 编辑
摘要:We will be building a Dice Game Project using HTML, CSS, and JavaScript. The Dice Game is based on a two-player. Both players roll the dice and the pl 阅读全文
posted @ 2023-06-27 14:44 Oops!# 阅读(21) 评论(0) 推荐(0) 编辑
摘要:We all must have seen a drum kit in some concert or elsewhere, it is a collection of drums, cymbals and other percussion instruments. But have you eve 阅读全文
posted @ 2023-06-27 14:39 Oops!# 阅读(12) 评论(0) 推荐(0) 编辑
摘要:In Fibonacci sequence, the first and second value is 0 and 1, and all the other values will be calculated based on the previous two values. For exampl 阅读全文
posted @ 2023-06-26 14:51 Oops!# 阅读(10) 评论(0) 推荐(0) 编辑
摘要:elow is my solution to printing the lyrics to 99 Bottles of Beer in JavaScript: function beerSong() { var bottles; var bottlesLeft; for (i = 99; i >= 阅读全文
posted @ 2023-06-26 14:35 Oops!# 阅读(16) 评论(0) 推荐(0) 编辑
摘要:We are going to write a function called fizzbuzz that will accept no arguments. The goal of this function is to print out all numbers from 1 to 100 bu 阅读全文
posted @ 2023-06-26 14:17 Oops!# 阅读(20) 评论(0) 推荐(0) 编辑
摘要:A year is leap year if following conditions are satisfied: Year is multiple of 400. Year is multiple of 4 and not multiple of 100. Approach: Get the v 阅读全文
posted @ 2023-06-26 10:20 Oops!# 阅读(8) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示