# **作業2 JavaScript** ## 1. from Python to JavaScript; ### **中文** | Python| Javascript | | -------- | -------- | | 易於維護的語言。 | 很難維護。 | | 程序化編程。 | 沒有。 | | Python 有一個換行符。 | Java-Script 有一個語句終止符。 | | 龐大的標準庫。 | 有限的標準庫。 | | Python 有一個 Self 作為每個方法的第一個參數。 | Javascript 有 “this”。 | | 如果我們進行數據分析、機器學習或數學密集型運算,Python 會很好。 | 而 JavaScript 則適用於構建網站或本機應用程序,因為它花費更少的時間進行 UI 工作。 | ### **English** | Python | Javascript | | -------- | -------- | | Language that is easy to mantain. | Hard to maintain. | | Procedural Programming. | Don't have. | | Python has a newline. | Java-Script has a statement terminator. | | Huge standard library. | Limited standard library. | | Python has a Self-argument as the first argument for each method. | Javascript has "this". | | Python is good if we do data analytics, machine learning or math-intensive operations. | Whereas JavaScript is good for building a website or native applications as it took less time for UI work. | ## 2. 以下練習 三選一 ![](https://i.imgur.com/0Hhdz60.png)