How to write X in both Python 3 and JavaScript (ES2015)

146 阅读1分钟
原文链接: sayazamurai.github.io

Math: Absolute Value

Math: Round Numbers

Math: Max and Min

Control Flow: If else

Control Flow: Ternary

Control Flow: Boolean

Control Flow: Exceptions

Control Flow: Continue / Break

String: Length

String: Interpolation

String: Multiline

String: String to Integer

String: Contains

String: Substring

String: Join

String: Strip

String: Split

String: Replace

String: Search

List/Array: Iteration

List/Array: Length

List/Array: Enumerate

List/Array: Contains

List/Array: Reverse

List/Array: Range Iteration

List/Array: Append with Modification

List/Array: Append without Modification

List/Array: Extend with Modification

List/Array: Extend without Modification

List/Array: Prepend

List/Array: Remove

List/Array: Pop

List/Array: Index

List/Array: Copy

List/Array: Map

List/Array: Map (Nested)

List/Array: Filter

List/Array: Sum

List/Array: Zip

List/Array: Slice

List/Array: Sort

List/Array: Sort Custom

Dictionary/Object: Iteration

Dictionary/Object: Contains

Dictionary/Object: Add with Modification

Dictionary/Object: Add without Modification

Dictionary/Object: Keys

Dictionary/Object: Values

Dictionary/Object: Remove

Dictionary/Object: Get

Dictionary/Object: Map

Dictionary/Object: Copy

Dictionary/Object: Dictionary/Object to JSON string

Dictionary/Object: JSON string to Dictionary/Object

Dictionary/Object: Variable Key

Function: Definitions

Function: Keyword Arguments

Function: Default Arguments

Function: Default Keyword Arguments

Function: Positional Arguments

Function: Variable Keyword Arguments

Class: Basics