Javascript -> JavaScript (English) (#35183)
* Javascript -> JavaScript (English) * Update technical documentation page for required change * Update use-class-syntax-to-define-a-constructor-function.english.md * Update left-factorials.md
This commit is contained in:
committed by
The Coding Aviator
parent
fed6ffb606
commit
e84ae45008
@@ -92,7 +92,7 @@ Binary Search Trees are very powerful because of their O(log n) search times, se
|
||||
|
||||
The code for recursive binary search is shown below:
|
||||
|
||||
### Javascript implementation
|
||||
### JavaScript implementation
|
||||
|
||||
```javascript
|
||||
function binarySearch(arr, item, low, high) {
|
||||
@@ -120,9 +120,9 @@ var numbers = [1,2,3,4,5,6,7];
|
||||
print(binarySearch(numbers, 5, 0, numbers.length-1));
|
||||
```
|
||||
|
||||
Here is another implementation in Javascript:
|
||||
Here is another implementation in JavaScript:
|
||||
|
||||
```Javascript
|
||||
```JavaScript
|
||||
function binary_search(a, v) {
|
||||
function search(low, high) {
|
||||
if (low === high) {
|
||||
|
@@ -55,7 +55,7 @@ int linearSearch(int arr[], int num)
|
||||
|
||||
```
|
||||
|
||||
### Example in Javascript
|
||||
### Example in JavaScript
|
||||
```javascript
|
||||
function linearSearch(arr, item) {
|
||||
// Go through all the elements of arr to look for item.
|
||||
|
Reference in New Issue
Block a user