file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
javascript/reference/global_objects/string/match/index.md
JavaScript - Global Objects - String - match - Examples - Using named capturing groups: In browsers which support named capturing groups, the following code captures `"fox"` or `"cat"` into a group named `animal`: Example: const paragraph = "The quick brown fox jumps over the lazy dog. It barked."; const capturingR...
[ -0.8414121866226196, -0.3155464231967926, -1.3926697969436646, 0.571596622467041, -1.0110187530517578, -1.3727624416351318, 0.3579476475715637, -0.33437663316726685, -1.169791579246521, 0.27139830589294434, -0.8594386577606201, -0.7889118194580078, -0.5515732169151306, -0.29806050658226013...
javascript/reference/global_objects/string/match/index.md
JavaScript - Global Objects - String - match - Examples - Using match() with no parameter: Example: const str = "Nothing will come of nothing."; str.match(); // returns [""]
[ -0.26774442195892334, 0.2312527745962143, -0.8798242807388306, 0.5846202969551086, -0.16081368923187256, -1.239391803741455, 1.207901120185852, 0.21978726983070374, 0.19419021904468536, 0.06703953444957733, -0.9822098612785339, -0.4644452929496765, 0.13151417672634125, -0.02833930961787700...
javascript/reference/global_objects/string/match/index.md
JavaScript - Global Objects - String - match - Examples - Using match() with a non-RegExp implementing `[Symbol.match]()`: If an object has a `Symbol.match` method, it can be used as a custom matcher. The return value of `Symbol.match` becomes the return value of `match()`. Example: const str = "Hmm, this is interes...
[ -0.768142580986023, 0.18623751401901245, 0.06470268219709396, 0.011679313145577908, 0.37218213081359863, -0.7263646721839905, 0.831451416015625, 0.664862334728241, -0.17194785177707672, -0.03926233574748039, -0.6759149432182312, -0.16345670819282532, 0.10905469208955765, 0.2244948148727417...
javascript/reference/global_objects/string/match/index.md
JavaScript - Global Objects - String - match - Examples - A non-RegExp as the parameter: When the `regexp` parameter is a string or a number, it is implicitly converted to a `RegExp` by using `new RegExp(regexp)`. Example: const str1 = "All numbers except NaN satisfy <= Infinity and >= -Infinity in JavaScript."; c...
[ -0.23249006271362305, 0.3162623345851898, -0.5518262982368469, -0.4001280665397644, -0.0431855246424675, -0.9311119318008423, 0.6324765682220459, 0.02189205400645733, 0.08018037676811218, -0.08980454504489899, -0.6557672619819641, -0.658527135848999, -0.43432193994522095, 0.068276688456535...
javascript/reference/global_objects/string/charat/index.md
JavaScript - Global Objects - String - charAt: The `charAt()` method of `String` values returns a new string consisting of the single UTF-16 code unit at the given index. `charAt()` always indexes the string as a sequence of UTF-16 code units, so it may return lone surrogates. To get the full Unicode code point at th...
[ -1.1597172021865845, -0.2433895319700241, -1.3118767738342285, -0.44788190722465515, 0.6026037931442261, -1.6873527765274048, 0.07176706939935684, 0.18184873461723328, -0.27816933393478394, -0.5674566626548767, -0.46902620792388916, 0.6089797616004944, 0.37224242091178894, 0.35454151034355...
javascript/reference/global_objects/string/charat/index.md
JavaScript - Global Objects - String - charAt - Syntax: Example: charAt(index)
[ -0.7108792066574097, -0.22215932607650757, -0.8113083839416504, -0.3270009756088257, -0.6999298930168152, -1.7729016542434692, 0.02805803157389164, 0.5147647261619568, -0.254718542098999, -0.5767268538475037, -0.038139380514621735, 0.00003612310683820397, -0.13330742716789246, 0.0870099663...
javascript/reference/global_objects/string/charat/index.md
JavaScript - Global Objects - String - charAt - Syntax - Parameters: - `index`: Zero-based index of the character to be returned. Converted to an integer — `undefined` is converted to 0.
[ -0.7527530789375305, 0.11003419011831284, -0.7188823819160461, -0.1111370101571083, -0.09714891761541367, -1.50612211227417, 0.6962078809738159, 0.09062041342258453, -0.11469939351081848, -0.46555131673812866, -0.9987486600875854, 0.24714450538158417, 0.3462456166744232, 0.2614702582359314...
javascript/reference/global_objects/string/charat/index.md
JavaScript - Global Objects - String - charAt - Syntax - Return value: A string representing the character (exactly one UTF-16 code unit) at the specified `index`. If `index` is out of the range of `0` – `str.length - 1`, `charAt()` returns an empty string.
[ -1.4362361431121826, -0.2927308678627014, -0.8548436760902405, -0.2801724374294281, 0.14009533822536469, -1.8855457305908203, 0.42650237679481506, 0.4213229715824127, -0.35887232422828674, -0.37076476216316223, -0.3497653901576996, 0.9709591269493103, -0.08627177774906158, 0.35976067185401...
javascript/reference/global_objects/string/charat/index.md
JavaScript - Global Objects - String - charAt - Description: Characters in a string are indexed from left to right. The index of the first character is `0`, and the index of the last character in a string called `str` is `str.length - 1`. Unicode code points range from `0` to `1114111` (`0x10FFFF`). `charAt()` always...
[ -1.1614151000976562, -0.2178950160741806, -0.8818109631538391, -0.7619535326957703, 0.3944697976112366, -1.4742498397827148, 0.4868161678314209, -0.2508265972137451, -0.029023312032222748, -0.23757196962833405, -0.4476942718029022, 0.3598867654800415, -0.5879719257354736, 0.191109225153923...
javascript/reference/global_objects/string/charat/index.md
JavaScript - Global Objects - String - charAt - Examples - Using charAt(): The following example displays characters at different locations in the string `"Brave new world"`: Example: const anyString = "Brave new world"; console.log(`The character at index 0 is '${anyString.charAt()}'`); // No index was provided, ...
[ -0.2893998324871063, 0.3680740296840668, -0.20289990305900574, 0.4649614691734314, 0.9111132025718689, -0.6966180801391602, -0.14076945185661316, 0.4052199721336365, 0.2828896939754486, -0.25196215510368347, 0.09041169285774231, 0.5139473676681519, -0.39381760358810425, 0.3017869293689728,...
javascript/reference/global_objects/string/codepointat/index.md
JavaScript - Global Objects - String - codePointAt: The `codePointAt()` method of `String` values returns a non-negative integer that is the Unicode code point value of the character starting at the given index. Note that the index is still based on UTF-16 code units, not Unicode code points. Example: const icons = ...
[ -0.9611430764198303, -0.8268529772758484, -1.151405692100525, -0.39966148138046265, -0.011230913922190666, -2.1706721782684326, -0.050035156309604645, -0.09481149166822433, -0.19052745401859283, -0.5374357104301453, -0.3821829557418823, 0.3861001431941986, 0.7662661671638489, -0.0024198528...
javascript/reference/global_objects/string/codepointat/index.md
JavaScript - Global Objects - String - codePointAt - Syntax: Example: codePointAt(index)
[ -0.32796767354011536, -0.44036105275154114, -0.8518129587173462, -0.24864806234836578, -0.737841010093689, -2.214078903198242, 0.1587267518043518, 0.2641829550266266, -0.6855666637420654, -0.37089672684669495, -0.3760733902454376, -0.011904962360858917, 0.1557585448026657, 0.11256870627403...
javascript/reference/global_objects/string/codepointat/index.md
JavaScript - Global Objects - String - codePointAt - Syntax - Parameters: - `index`: Zero-based index of the character to be returned. Converted to an integer — `undefined` is converted to 0.
[ -0.4368290603160858, 0.12154825776815414, -0.7199947237968445, -0.18441998958587646, -0.18931841850280762, -1.7410277128219604, 0.7547093629837036, 0.04849672690033913, -0.0989706739783287, -0.38604068756103516, -1.2906644344329834, 0.25836819410324097, 0.4305403530597687, 0.36171883344650...
javascript/reference/global_objects/string/codepointat/index.md
JavaScript - Global Objects - String - codePointAt - Syntax - Return value: A non-negative integer representing the code point value of the character at the given `index`. - If `index` is out of the range of `0` – `str.length - 1`, `codePointAt()` returns `undefined`. - If the element at `index` is a UTF-16 leading s...
[ -1.3518226146697998, -0.14932945370674133, -0.8908003568649292, -0.541132926940918, -0.01334518101066351, -1.389236330986023, 0.5450369715690613, 0.23137708008289337, -0.694079577922821, 0.1525486260652542, -0.5130443572998047, 0.9161034822463989, -0.18579623103141785, 0.3165096938610077, ...
javascript/reference/global_objects/string/codepointat/index.md
JavaScript - Global Objects - String - codePointAt - Description: Characters in a string are indexed from left to right. The index of the first character is `0`, and the index of the last character in a string called `str` is `str.length - 1`. Unicode code points range from `0` to `1114111` (`0x10FFFF`). In UTF-16, e...
[ -0.9457142949104309, -0.3485908806324005, -0.762954592704773, -1.036806344985962, 0.48252859711647034, -1.411472201347351, 0.207868292927742, -0.41705071926116943, -0.03310452029109001, -0.36682751774787903, -0.39287301898002625, 0.34173837304115295, -0.3734821081161499, -0.147167637944221...
javascript/reference/global_objects/string/codepointat/index.md
JavaScript - Global Objects - String - codePointAt - Examples - Using codePointAt(): Example: "ABC".codePointAt(0); // 65 "ABC".codePointAt(0).toString(16); // 41 "😍".codePointAt(0); // 128525 "\ud83d\ude0d".codePointAt(0); // 128525 "\ud83d\ude0d".codePointAt(0).toString(16); // 1f60d "😍".codePointAt(1); // 5684...
[ -0.09022234380245209, -0.18082597851753235, -0.4011274576187134, -1.2633594274520874, -0.19482338428497314, -1.8915196657180786, 0.05225316435098648, -0.6611278057098389, -0.5637326836585999, -0.5067737698554993, -0.1837989091873169, -0.36519065499305725, -0.15477070212364197, -0.151691764...
javascript/reference/global_objects/string/codepointat/index.md
JavaScript - Global Objects - String - codePointAt - Examples - Looping with codePointAt(): Because using string indices for looping causes the same code point to be visited twice (once for the leading surrogate, once for the trailing surrogate), and the second time `codePointAt()` returns only the trailing surrogate,...
[ -0.35297274589538574, 0.3941049575805664, -0.28010091185569763, 0.5339218974113464, 0.31837475299835205, -0.31447118520736694, 0.02182021550834179, -0.20333178341388702, -0.9706026315689087, -0.3657410144805908, -0.3072338104248047, -0.050995755940675735, -0.16287997364997864, 0.7733228206...
javascript/reference/global_objects/string/big/index.md
JavaScript - Global Objects - String - big: Deprecated: This feature is no longer recommended. The `big()` method of `String` values creates a string that embeds this string in a `big` element (`<big>str</big>`), which causes this string to be displayed in a big font. Note: All HTML wrapper methods are deprecated an...
[ -1.7098907232284546, -0.23818950355052948, -0.8174198269844055, -0.48847153782844543, -0.25220271944999695, -2.0892910957336426, 1.2440191507339478, 0.49664971232414246, -0.5201713442802429, -0.012304368428885937, 0.06958669424057007, 0.6694174408912659, 0.6354701519012451, -0.333264768123...
javascript/reference/global_objects/string/big/index.md
JavaScript - Global Objects - String - big - Syntax: Example: big()
[ -0.7527932524681091, 0.21874913573265076, -1.1694018840789795, -0.2411184161901474, -0.7767297625541687, -1.887852668762207, 0.5536544919013977, 0.661845326423645, -0.3915962874889374, -0.8932379484176636, -0.19394978880882263, 0.39436161518096924, -0.24063977599143982, -0.0522104389965534...
javascript/reference/global_objects/string/big/index.md
JavaScript - Global Objects - String - big - Syntax - Parameters: None.
[ -0.5613229870796204, 0.32346850633621216, -1.0338929891586304, -0.7065585255622864, -0.7554219365119934, -1.4308393001556396, 0.67735356092453, 0.8624652624130249, -0.46431562304496765, -0.6938040852546692, -0.7339723706245422, -0.5218721032142639, -0.19611689448356628, 0.12925894558429718...
javascript/reference/global_objects/string/big/index.md
JavaScript - Global Objects - String - big - Syntax - Return value: A string beginning with a `<big>` start tag, then the text `str`, and then a `</big>` end tag.
[ -1.3339555263519287, 0.2763530910015106, -0.3665948510169983, -0.48878613114356995, -0.37219148874282837, -0.8935071229934692, 0.37406501173973083, 0.4665084183216095, -0.45677754282951355, -0.19245648384094238, -0.38849592208862305, 0.41157615184783936, -0.32128992676734924, 0.54506641626...
javascript/reference/global_objects/string/big/index.md
JavaScript - Global Objects - String - big - Examples - Using big(): The code below creates an HTML string and then replaces the document's body with it: Example: const contentString = "Hello, world"; document.body.innerHTML = contentString.big(); This will create the following HTML: Example: <big>Hello, world</...
[ -1.1241964101791382, 0.2663773000240326, -0.04550638422369957, 0.6470069289207458, -0.09004021435976028, -1.9828476905822754, -0.3145673871040344, -0.6196634769439697, -1.0368499755859375, -0.15774688124656677, -0.37784865498542786, 0.41832906007766724, -0.15568646788597107, -0.61344546079...
javascript/reference/global_objects/string/touppercase/index.md
JavaScript - Global Objects - String - toUpperCase: The `toUpperCase()` method of `String` values returns this string converted to uppercase. Example: const sentence = "The quick brown fox jumps over the lazy dog."; console.log(sentence.toUpperCase()); // Expected output: "THE QUICK BROWN FOX JUMPS OVER THE LAZY DO...
[ -1.0966846942901611, 0.3716074228286743, -0.45445504784584045, 0.24801498651504517, 0.2744390666484833, -1.7105941772460938, 0.5840778350830078, 0.9593721628189087, -0.8437442779541016, 0.07331380993127823, -0.8243194222450256, 0.6935034990310669, -0.04127046465873718, -0.03967054188251495...
javascript/reference/global_objects/string/touppercase/index.md
JavaScript - Global Objects - String - toUpperCase - Syntax: Example: toUpperCase()
[ -0.8575944900512695, 0.16221030056476593, -0.41489970684051514, 0.4490981101989746, -0.37175533175468445, -1.7981189489364624, 0.6949924230575562, 1.3404570817947388, -0.5787121653556824, -0.4051809310913086, -0.44269824028015137, 0.7280474305152893, -0.19182854890823364, 0.414122432470321...
javascript/reference/global_objects/string/touppercase/index.md
JavaScript - Global Objects - String - toUpperCase - Syntax - Parameters: None.
[ -0.5080147385597229, 0.2080792933702469, -0.6459178924560547, -0.09565960615873337, -0.12101782113313675, -1.5314987897872925, 1.0281940698623657, 1.286853313446045, -0.9594473838806152, -0.4291311800479889, -0.9939324259757996, 0.06419356167316437, 0.25417467951774597, 0.5187019109725952,...
javascript/reference/global_objects/string/touppercase/index.md
JavaScript - Global Objects - String - toUpperCase - Syntax - Return value: A new string representing the calling string converted to upper case.
[ -0.4365498721599579, 0.12519867718219757, -0.8764356374740601, 0.1911429911851883, 0.14562879502773285, -1.6341173648834229, 0.6566723585128784, 1.5168495178222656, -0.367937833070755, 0.5137017965316772, -0.5357851386070251, 0.8585249781608582, 0.1297861486673355, 1.1300140619277954, 0....
javascript/reference/global_objects/string/touppercase/index.md
JavaScript - Global Objects - String - toUpperCase - Description: The `toUpperCase()` method returns the value of the string converted to uppercase. This method does not affect the value of the string itself since JavaScript strings are immutable.
[ -0.8448059558868408, 0.35996368527412415, -0.3587501049041748, 0.5063924193382263, 0.4062575399875641, -2.059629201889038, 1.705810308456421, 1.3385752439498901, -0.9286770224571228, 0.1942119151353836, -0.42514005303382874, 1.1132653951644897, 0.168484166264534, 0.020919710397720337, 0....
javascript/reference/global_objects/string/touppercase/index.md
JavaScript - Global Objects - String - toUpperCase - Examples - Basic usage: Example: console.log("alphabet".toUpperCase()); // 'ALPHABET'
[ -0.33957067131996155, 0.04107925668358803, -0.7319322228431702, 0.7829979062080383, 0.10119624435901642, -1.6263365745544434, 0.7120898365974426, 0.323037713766098, -0.34074366092681885, -0.4911082684993744, -0.16605108976364136, 0.2790822982788086, -0.0053579797968268394, 0.05886927247047...
javascript/reference/global_objects/string/touppercase/index.md
JavaScript - Global Objects - String - toUpperCase - Examples - Conversion of non-string `this` values to strings: This method will convert any non-string value to a string, when you set its `this` to a value that is not a string: Example: const a = String.prototype.toUpperCase.call({ toString() { return "abcd...
[ -0.6992697715759277, 0.26015186309814453, 0.10135553777217865, 0.5421891212463379, -0.10454776883125305, -1.25837242603302, 1.1777182817459106, 0.9770269393920898, 0.6333540678024292, 0.0700511708855629, -0.5441157221794128, 0.5747030377388, 0.24709828197956085, -0.2569376230239868, 0.64...
javascript/reference/global_objects/string/fontcolor/index.md
JavaScript - Global Objects - String - fontcolor: Deprecated: This feature is no longer recommended. The `fontcolor()` method of `String` values creates a string that embeds this string in a `font` element (`<font color="...">str</font>`), which causes this string to be displayed in the specified font color. Note: A...
[ -1.0896623134613037, -0.7397535443305969, -0.2088104784488678, -0.27570030093193054, -0.21938388049602509, -2.202880620956421, 1.050597906112671, 0.9654200673103333, -0.24600964784622192, 0.08487431704998016, -0.06139754131436348, 0.33497923612594604, 0.48534202575683594, -0.67226397991180...
javascript/reference/global_objects/string/fontcolor/index.md
JavaScript - Global Objects - String - fontcolor - Syntax: Example: fontcolor(color)
[ -0.5714559555053711, 0.03275208920240402, -0.4595252275466919, -0.49709057807922363, -0.47200313210487366, -2.7100257873535156, 0.22340919077396393, 1.629218578338623, -0.41967329382896423, -0.8480281829833984, 0.30554550886154175, 0.11573664844036102, -0.1833440214395523, -0.6029763817787...
javascript/reference/global_objects/string/fontcolor/index.md
JavaScript - Global Objects - String - fontcolor - Syntax - Parameters: - `color`: A string expressing the color as a hexadecimal RGB triplet or as a string literal. String literals for color names are listed in the CSS color reference.
[ -1.3967159986495972, -0.4228367805480957, -0.5302724838256836, -0.6051720976829529, -0.17844432592391968, -2.215747117996216, 0.245130255818367, 0.8396095037460327, -0.2385806441307068, -0.5116561055183411, -0.42048197984695435, 0.01813570410013199, -0.08921411633491516, 0.0176579225808382...
javascript/reference/global_objects/string/fontcolor/index.md
JavaScript - Global Objects - String - fontcolor - Syntax - Return value: A string beginning with a `<font color="color">` start tag (double quotes in `color` are replaced with `&quot;`), then the text `str`, and then a `</font>` end tag.
[ -1.6409823894500732, 0.14108556509017944, 0.013398834504187107, -0.3757508099079132, -0.28036901354789734, -1.5561251640319824, 0.25804805755615234, 1.0001198053359985, -0.2846294045448303, 0.019608426839113235, -0.1614466905593872, 0.23468494415283203, -0.13495568931102753, 0.082948140799...
javascript/reference/global_objects/string/fontcolor/index.md
JavaScript - Global Objects - String - fontcolor - Description: The `fontcolor()` method itself simply joins the string parts together without any validation or normalization. However, to create valid `font` elements, if you express color as a hexadecimal RGB triplet, you must use the format `rrggbb`. For example, the...
[ -1.5664626359939575, -0.6021478772163391, -0.5175292491912842, -0.7471392750740051, 0.08782541006803513, -1.4572606086730957, 0.8064866662025452, 0.35547807812690735, -0.5524953603744507, 0.40790119767189026, 0.011750183999538422, 0.6308773159980774, 0.6363612413406372, -0.1764665096998214...
javascript/reference/global_objects/string/fontcolor/index.md
JavaScript - Global Objects - String - fontcolor - Examples - Using fontcolor(): The code below creates an HTML string and then replaces the document's body with it: Example: const contentString = "Hello, world"; document.body.innerHTML = contentString.fontcolor("red"); This will create the following HTML: Exampl...
[ -1.0668585300445557, -0.009243445470929146, 0.4490150809288025, 0.6278576850891113, 0.094114750623703, -2.2364392280578613, -0.6531550288200378, 0.16300757229328156, -0.7474808096885681, -0.044651973992586136, -0.26851576566696167, 0.05687347427010536, 0.13341127336025238, -0.9338478446006...
javascript/reference/global_objects/string/substr/index.md
JavaScript - Global Objects - String - substr: Deprecated: This feature is no longer recommended. The `substr()` method of `String` values returns a portion of this string, starting at the specified index and extending for a given number of characters afterwards. Note: `substr()` is not part of the main ECMAScript s...
[ -1.575000286102295, -0.3528587222099304, -0.6248292326927185, 0.028909731656312943, 0.25080519914627075, -1.5004990100860596, 1.1814907789230347, 0.17317810654640198, 0.18322813510894775, -0.09182874858379364, -0.1252107173204422, 1.020616888999939, 0.45130741596221924, -0.0204285215586423...
javascript/reference/global_objects/string/substr/index.md
JavaScript - Global Objects - String - substr - Syntax: Example: substr(start) substr(start, length)
[ -0.7990930080413818, -0.40762317180633545, -0.7675020694732666, -0.3674231469631195, -0.989849328994751, -1.0460861921310425, 0.6425353288650513, 0.2737020254135132, 0.04225216433405876, -0.5915642976760864, -0.8195140957832336, -0.3013060688972473, -0.5881943106651306, 0.16275380551815033...
javascript/reference/global_objects/string/substr/index.md
JavaScript - Global Objects - String - substr - Syntax - Parameters: - `start`: The index of the first character to include in the returned substring. - `length` (optional): The number of characters to extract.
[ -0.8219839334487915, -0.6340640783309937, -0.6181507706642151, -0.3011021614074707, -0.27273863554000854, -1.4256391525268555, 0.8924917578697205, -0.44572094082832336, 0.5479049682617188, -0.24798740446567535, -1.3119155168533325, 0.039759643375873566, -0.43854033946990967, 0.442022800445...
javascript/reference/global_objects/string/substr/index.md
JavaScript - Global Objects - String - substr - Syntax - Return value: A new string containing the specified part of the given string.
[ -0.8919057250022888, -0.5978769659996033, -0.5731608271598816, 0.08788993954658508, -0.5303901433944702, -1.4978784322738647, 0.9338678121566772, 0.7291539311408997, 0.38840222358703613, 0.019620399922132492, -0.6987363696098328, 0.3886144757270813, -0.5320038795471191, 1.5294116735458374,...
javascript/reference/global_objects/string/substr/index.md
JavaScript - Global Objects - String - substr - Description: A string's `substr()` method extracts `length` characters from the string, counting from the `start` index. - If `start >= str.length`, an empty string is returned. - If `start < 0`, the index starts counting from the end of the string. More formally, in th...
[ -1.5985896587371826, -0.015642449259757996, -0.7839277982711792, -0.06909050792455673, 0.4020844101905823, -0.8901524543762207, 1.3350412845611572, 0.07395217567682266, -0.4517057240009308, 0.4378354549407959, -0.5544376969337463, 0.009131069295108318, -0.47103315591812134, 0.6485204100608...
javascript/reference/global_objects/string/substr/index.md
JavaScript - Global Objects - String - substr - Examples - Using substr(): Example: const string = "Mozilla"; console.log(string.substr(0, 1)); // 'M' console.log(string.substr(1, 0)); // '' console.log(string.substr(-1, 1)); // 'a' console.log(string.substr(1, -1)); // '' console.log(string.substr(-3)); // 'lla' co...
[ -0.7330116629600525, -0.3924295902252197, -1.0428317785263062, -0.20026955008506775, -0.12130197137594223, -1.4609779119491577, -0.08031565696001053, -0.1359371393918991, -0.037009336054325104, -0.48128485679626465, -0.433433473110199, -0.03233114629983902, -0.3135877251625061, -0.64210093...
javascript/reference/global_objects/string/fontsize/index.md
JavaScript - Global Objects - String - fontsize: Deprecated: This feature is no longer recommended. The `fontsize()` method of `String` values creates a string that embeds this string in a `font` element (`<font size="...">str</font>`), which causes this string to be displayed in the specified font size. Note: All H...
[ -1.3591341972351074, -0.33157336711883545, -0.5706700086593628, -0.4407375156879425, -0.4154726564884186, -1.978703260421753, 1.433494210243225, 0.6586663126945496, -0.08514420688152313, -0.08576434850692749, -0.12051110714673996, 0.7738416790962219, 0.31157130002975464, -0.906153380870819...
javascript/reference/global_objects/string/fontsize/index.md
JavaScript - Global Objects - String - fontsize - Syntax: Example: fontsize(size)
[ -0.8169699311256409, 0.03306762874126434, -0.68561851978302, -0.7147699594497681, -0.8352798819541931, -2.355820417404175, 0.7356022000312805, 1.3578341007232666, 0.22760027647018433, -0.829674482345581, 0.058422502130270004, 0.5710769891738892, -0.3200759291648865, -0.7043298482894897, ...
javascript/reference/global_objects/string/fontsize/index.md
JavaScript - Global Objects - String - fontsize - Syntax - Parameters: - `size`: An integer between 1 and 7, or a string representing a signed integer between 1 and 7.
[ -0.8791193962097168, 0.2893723249435425, -0.9105674028396606, -1.1221674680709839, -0.22942720353603363, -0.966947078704834, 0.01436905562877655, 1.0380433797836304, 0.6955481767654419, -1.0289064645767212, -0.05984511598944664, 0.7379644513130188, -0.270833283662796, -0.3645787537097931, ...
javascript/reference/global_objects/string/fontsize/index.md
JavaScript - Global Objects - String - fontsize - Syntax - Return value: A string beginning with a `<font size="size">` start tag (double quotes in `size` are replaced with `&quot;`), then the text `str`, and then a `</font>` end tag.
[ -1.7849678993225098, 0.32647940516471863, -0.14674770832061768, -0.5179968476295471, -0.40913671255111694, -1.25667142868042, 0.5821840167045593, 0.8199529647827148, -0.11515429615974426, -0.041368138045072556, -0.1276322454214096, 0.5029427409172058, -0.325033038854599, -0.110333643853664...
javascript/reference/global_objects/string/fontsize/index.md
JavaScript - Global Objects - String - fontsize - Description: The `fontsize()` method itself simply joins the string parts together without any validation or normalization. However, to create valid `font` elements, When you specify size as an integer, you set the font size of `str` to one of the 7 defined sizes. You ...
[ -1.1654757261276245, 0.10904128104448318, -0.49360308051109314, -0.28760117292404175, 0.13672621548175812, -1.2772407531738281, 1.2464516162872314, 0.48490187525749207, 0.28304216265678406, -0.08073936402797699, -0.4557248055934906, 0.44931063055992126, -0.05165645852684975, -0.79861670732...
javascript/reference/global_objects/string/fontsize/index.md
JavaScript - Global Objects - String - fontsize - Examples - Using fontsize(): The code below creates an HTML string and then replaces the document's body with it: Example: const contentString = "Hello, world"; document.body.innerHTML = contentString.fontsize(7); This will create the following HTML: Example: <fo...
[ -1.0623054504394531, 0.4257411062717438, 0.3133503496646881, 0.577942967414856, -0.0746474415063858, -2.0564684867858887, -0.22164572775363922, -0.12137836962938309, -0.5561614632606506, -0.21190153062343597, -0.2697446346282959, 0.5395735502243042, -0.2424415946006775, -0.9894129633903503...
javascript/reference/global_objects/string/trimstart/index.md
JavaScript - Global Objects - String - trimStart: The `trimStart()` method of `String` values removes whitespace from the beginning of this string and returns a new string, without modifying the original string. `trimLeft()` is an alias of this method. Example: const greeting = " Hello world! "; console.log(gre...
[ -1.3184068202972412, -0.15680144727230072, -0.38447052240371704, -0.12685920298099518, -0.03876855596899986, -1.9613010883331299, 0.4236602187156677, 0.6637403964996338, -0.08462788909673691, 0.8915019035339355, -1.1768488883972168, -0.12503273785114288, -0.47612056136131287, -0.1150140687...
javascript/reference/global_objects/string/trimstart/index.md
JavaScript - Global Objects - String - trimStart - Syntax: Example: trimStart() trimLeft()
[ -1.2165172100067139, -0.04141410440206528, -0.40375766158103943, -0.42303329706192017, -1.1025800704956055, -1.6461695432662964, 0.9386473298072815, 1.5158625841140747, 0.22151465713977814, 0.07018142193555832, -1.062773585319519, 0.37119194865226746, -0.668457567691803, 0.2714227437973022...
javascript/reference/global_objects/string/trimstart/index.md
JavaScript - Global Objects - String - trimStart - Syntax - Parameters: None.
[ -1.1066197156906128, 0.233552485704422, -0.8060808181762695, -0.7186748385429382, -0.901759684085846, -1.1856955289840698, 1.2431823015213013, 1.4899787902832031, -0.10350204259157181, 0.19446001946926117, -1.1211096048355103, -0.49514490365982056, -0.4069671928882599, 0.45711779594421387,...
javascript/reference/global_objects/string/trimstart/index.md
JavaScript - Global Objects - String - trimStart - Syntax - Return value: A new string representing `str` stripped of whitespace from its beginning (left side). Whitespace is defined as white space characters plus line terminators. If the beginning of `str` has no whitespace, a new string is still returned (essential...
[ -1.5928337574005127, -0.0006964959320612252, -0.12998293340206146, -0.5687447190284729, 0.03933964669704437, -1.0040709972381592, 0.7217069268226624, 1.4618794918060303, 0.7479116320610046, 1.1877069473266602, -0.6593329906463623, 0.5246055722236633, -0.5755115747451782, 0.4323605597019195...
javascript/reference/global_objects/string/trimstart/index.md
JavaScript - Global Objects - String - trimStart - Syntax - Aliasing: After `trim()` was standardized, engines also implemented the non-standard method `trimLeft`. However, for consistency with `padStart()`, when the method got standardized, its name was chosen as `trimStart`. For web compatibility reasons, `trimLeft`...
[ -1.274570107460022, -0.672840416431427, -1.244467854499817, -0.3112252950668335, -0.8566014766693115, -1.5871704816818237, 1.2231967449188232, 1.6425782442092896, -0.10434579104185104, 0.366647332906723, -0.7979666590690613, -0.17436324059963226, -0.24023079872131348, 0.3330916464328766, ...
javascript/reference/global_objects/string/trimstart/index.md
JavaScript - Global Objects - String - trimStart - Examples - Using trimStart(): The following example trims whitespace from the start of `str`, but not from its end. Example: let str = " foo "; console.log(str.length); // 8 str = str.trimStart(); console.log(str.length); // 5 console.log(str); // 'foo '
[ -1.0559483766555786, 0.01705820858478546, -0.24362465739250183, -0.4258139133453369, -0.336735337972641, -1.0313712358474731, 0.7857241034507751, 1.006256103515625, -0.08972015976905823, 1.0573831796646118, -0.3180547058582306, -0.04434593394398689, -0.9863809943199158, -0.3607130646705627...
javascript/reference/global_objects/string/concat/index.md
JavaScript - Global Objects - String - concat: The `concat()` method of `String` values concatenates the string arguments to this string and returns a new string. Example: const str1 = "Hello"; const str2 = "World"; console.log(str1.concat(" ", str2)); // Expected output: "Hello World" console.log(str2.concat(", "...
[ -1.0767030715942383, -0.43917739391326904, -1.105513095855713, 0.41980990767478943, -0.021544761955738068, -1.6364858150482178, -0.7786903977394104, -0.1234985962510109, 0.017915084958076477, 0.017418397590517998, -0.9024377465248108, 0.13267552852630615, 0.39331290125846863, 0.14923410117...
javascript/reference/global_objects/string/concat/index.md
JavaScript - Global Objects - String - concat - Syntax: Example: concat(str1) concat(str1, str2) concat(str1, str2, /* …, */ strN)
[ -1.2222163677215576, 0.2459203004837036, -0.5879048109054565, -0.3921191990375519, -0.5761384963989258, -1.601417064666748, -0.9424817562103271, 0.25480619072914124, 0.1358816772699356, -0.19170904159545898, -0.8010781407356262, 0.22555124759674072, -0.7290525436401367, -0.2190877497196197...
javascript/reference/global_objects/string/concat/index.md
JavaScript - Global Objects - String - concat - Syntax - Parameters: - `str1`, …, `strN`: One or more strings to concatenate to `str`. Though technically permitted, calling `String.prototype.concat()` with no arguments is a useless operation, because it does not result in observable copying (like `Array.prototype.conc...
[ -1.0929608345031738, 0.5611553192138672, -0.4325728416442871, 0.088229238986969, 0.1640712320804596, -1.9372044801712036, -0.3379993140697479, 0.004514416214078665, 0.481981098651886, 0.06354587525129318, -1.2883851528167725, -0.3332427144050598, -0.3329511880874634, -0.30836233496665955, ...
javascript/reference/global_objects/string/concat/index.md
JavaScript - Global Objects - String - concat - Syntax - Return value: A new string containing the combined text of the strings provided.
[ -0.7338632941246033, -0.5829014778137207, -1.1296086311340332, -0.24831408262252808, -0.5026254057884216, -1.2381418943405151, 0.2081645280122757, 0.6703949570655823, -0.14995117485523224, 0.11409078538417816, -0.65125572681427, 0.43178069591522217, -0.5258403420448303, 1.3513288497924805,...
javascript/reference/global_objects/string/concat/index.md
JavaScript - Global Objects - String - concat - Description: The `concat()` function concatenates the string arguments to the calling string and returns a new string. If the arguments are not of the type string, they are converted to string values before concatenating. The `concat()` method is very similar to the ad...
[ -0.6515406966209412, -0.26691362261772156, -1.795084834098816, 0.5051915645599365, -0.19267678260803223, -1.2252089977264404, 0.5601094365119934, 0.5765948295593262, 0.13237813115119934, 0.3660762906074524, -0.9351385235786438, -0.016473418101668358, -0.528032660484314, 0.01911998726427555...
javascript/reference/global_objects/string/concat/index.md
JavaScript - Global Objects - String - concat - Examples - Using concat(): The following example combines strings into a new string. Example: const hello = "Hello, "; console.log(hello.concat("Kevin", ". Have a nice day.")); // Hello, Kevin. Have a nice day. const greetList = ["Hello", " ", "Venkat", "!"]; "".conca...
[ -0.6519206166267395, -0.2171953320503235, -1.2233901023864746, -0.022277746349573135, -0.1504737287759781, -1.354732632637024, -0.47362059354782104, -0.9296128153800964, 0.15250329673290253, 0.12549935281276703, -0.13595955073833466, 0.4206550717353821, 0.1102880984544754, 0.23542954027652...
javascript/reference/global_objects/string/repeat/index.md
JavaScript - Global Objects - String - repeat: The `repeat()` method of `String` values constructs and returns a new string which contains the specified number of copies of this string, concatenated together. Example: const mood = "Happy! "; console.log(`I feel ${mood.repeat(3)}`); // Expected output: "I feel Happy...
[ -1.398719310760498, -0.614536702632904, -1.0968834161758423, 0.19778525829315186, 0.16133537888526917, -1.537330150604248, 0.5266326069831848, 0.4420599639415741, -0.6668970584869385, 0.0072738537564873695, -1.1435014009475708, -0.004392480012029409, -0.04813842102885246, 0.355035781860351...
javascript/reference/global_objects/string/repeat/index.md
JavaScript - Global Objects - String - repeat - Syntax: Example: repeat(count)
[ -0.28484317660331726, 0.2850625514984131, -0.8528316020965576, -0.3553934097290039, -0.8042242527008057, -1.9494260549545288, 1.3032399415969849, 0.5693225860595703, -1.6122573614120483, -0.2366359382867813, -0.9924752712249756, 0.13862228393554688, -0.6853211522102356, 0.6094865798950195,...
javascript/reference/global_objects/string/repeat/index.md
JavaScript - Global Objects - String - repeat - Syntax - Parameters: - `count`: An integer between `0` and `Infinity`, indicating the number of times to repeat the string.
[ -0.8568758964538574, 0.2070736438035965, -0.7121866345405579, -0.2582955062389374, -0.3883729577064514, -1.4781219959259033, 0.699799120426178, 0.01941516250371933, -0.7784311175346375, -0.4052448272705078, -1.169432520866394, -0.03929280489683151, -0.3607838451862335, 0.7843500971794128, ...
javascript/reference/global_objects/string/repeat/index.md
JavaScript - Global Objects - String - repeat - Syntax - Return value: A new string containing the specified number of copies of the given string.
[ -0.512514591217041, -0.19300876557826996, -0.6721674203872681, 0.015081596560776234, -0.5222432017326355, -1.4511181116104126, 0.5720184445381165, 0.8609693646430969, -0.6560240387916565, -0.36152440309524536, -1.2087935209274292, 0.40062659978866577, -0.6159499287605286, 1.329033255577087...
javascript/reference/global_objects/string/repeat/index.md
JavaScript - Global Objects - String - repeat - Syntax - Exceptions: - `RangeError`: Thrown if `count` is negative or if `count` overflows maximum string length.
[ -0.8776171207427979, 0.059520963579416275, -0.7327290177345276, 0.10026849061250687, -0.2558496594429016, -2.30258846282959, 0.42690443992614746, 0.4003366231918335, -1.508963704109192, 0.0508376769721508, -1.1909421682357788, 0.17315033078193665, -0.7919639348983765, 0.18750333786010742, ...
javascript/reference/global_objects/string/repeat/index.md
JavaScript - Global Objects - String - repeat - Examples - Using repeat(): Example: "abc".repeat(-1); // RangeError "abc".repeat(0); // '' "abc".repeat(1); // 'abc' "abc".repeat(2); // 'abcabc' "abc".repeat(3.5); // 'abcabcabc' (count will be converted to integer) "abc".repeat(1 / 0); // RangeError ({ toString: () =...
[ -1.127816915512085, 0.8896949887275696, -1.0953896045684814, -0.10837773233652115, 0.17966650426387787, -1.407985806465149, 1.2935208082199097, 0.26568084955215454, -0.7522976398468018, 0.09949462860822678, -0.8752803206443787, 0.28849485516548157, -0.42872968316078186, 0.23230016231536865...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split: The `split()` method of `String` values takes a pattern and divides this string into an ordered list of substrings by searching for the pattern, puts these substrings into an array, and returns the array. Example: const str = "The quick brown fox jumps over the lazy dog....
[ -1.0846480131149292, -0.4629342555999756, -0.9931974411010742, 0.6972876787185669, 0.25686395168304443, -1.2533742189407349, 0.28368180990219116, -0.7336544394493103, -0.14042694866657257, 0.3161577880382538, -1.1130858659744263, 0.03648526966571808, -0.18187829852104187, 0.483646601438522...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split - Syntax: Example: split(separator) split(separator, limit)
[ -0.26366713643074036, 0.2851129174232483, -0.7991160750389099, -0.41031432151794434, -0.7486172318458557, -1.8778648376464844, -0.2604493200778961, 0.6346352696418762, -0.1913091391324997, -0.2623208165168762, -0.8781241774559021, 0.49682676792144775, -0.07377807796001434, 0.22284005582332...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split - Syntax - Parameters: - `separator`: The pattern describing where each split should occur. Can be `undefined`, a string, or an object with a `Symbol.split` method — the typical example being a `regular expression`. Omitting `separator` or passing `undefined` causes `split(...
[ -0.8109070062637329, -0.41424453258514404, -1.3062646389007568, 0.11255184561014175, -0.09819106012582779, -1.681954026222229, 0.1812269389629364, -0.03400386869907379, -0.1852695196866989, 0.6722312569618225, -1.0975537300109863, 0.5950746536254883, -0.2057962715625763, 0.6783413887023926...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split - Syntax - Return value: If `separator` is a string, an `Array` of strings is returned, split at each point where the `separator` occurs in the given string. If `separator` is a regex, the returned `Array` also contains the captured groups for each separator match; see bel...
[ -0.566723644733429, 0.07140031456947327, -0.7602207064628601, 0.3270266056060791, -0.19663259387016296, -1.3679317235946655, 0.4952359199523926, 0.42818957567214966, -0.4152284264564514, 0.6865898370742798, -0.9192474484443665, 0.4890291690826416, -0.18188568949699402, 0.7510201334953308, ...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split - Description: If `separator` is a non-empty string, the target string is split by all matches of the `separator` without including `separator` in the results. For example, a string containing tab separated values (TSV) could be parsed by passing a tab character as the sepa...
[ 0.18158040940761566, 0.29927441477775574, -0.6027345657348633, 0.07016541063785553, 1.1600574254989624, -0.5075748562812805, 0.27868613600730896, 0.24869368970394135, -0.2439447045326233, -0.127895325422287, -0.061321500688791275, 0.26382583379745483, -0.22735688090324402, 0.34825909137725...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split - Examples - Using split(): When the string is empty and a non-empty separator is specified, `split()` returns `[""]`. If the string and separator are both empty strings, an empty array is returned. Example: const emptyString = ""; // string is empty and separator is non...
[ -0.06535321474075317, 0.32078251242637634, -0.9310457110404968, 0.2527036964893341, 0.811060905456543, -1.089171290397644, 0.1377093493938446, -0.06717751920223236, -0.41455742716789246, 0.511811375617981, 0.16412901878356934, 0.3498836159706116, -0.2714916467666626, 0.5472807288169861, ...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split - Examples - Removing spaces from a string: In the following example, `split()` looks for zero or more spaces, followed by a semicolon, followed by zero or more spaces—and, when found, removes the spaces and the semicolon from the string. `nameList` is the array returned as...
[ -0.7341731786727905, -0.38367050886154175, -0.7699248790740967, 0.5492110252380371, 0.3576703667640686, -1.7260644435882568, 0.6561411023139954, -0.807894766330719, 0.20228973031044006, 0.49465879797935486, -0.8275884389877319, 0.44270724058151245, -0.3580645024776459, -0.03634144738316536...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split - Examples - Returning a limited number of splits: In the following example, `split()` looks for spaces in a string and returns the first 3 splits that it finds. Example: const myString = "Hello World. How are you doing?"; const splits = myString.split(" ", 3); console.l...
[ -1.241312026977539, 0.03725246340036392, -0.5537404417991638, 0.31176450848579407, -0.23341655731201172, -1.4592164754867554, -0.017170783132314682, -0.5293101668357849, -0.5388117432594299, 0.44453486800193787, -1.1605160236358643, 0.521259605884552, 0.11938201636075974, 0.094583168625831...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split - Examples - Splitting with a `RegExp` to include parts of the separator in the result: If `separator` is a regular expression that contains capturing parentheses `( )`, matched results are included in the array. Example: const myString = "Hello 1 word. Sentence number 2....
[ -0.7548696994781494, -0.1155916079878807, -0.6190053224563599, 0.26044514775276184, 0.12100237607955933, -1.0745457410812378, -0.4278470575809479, 0.5079085230827332, 0.08488796651363373, 0.17243649065494537, -0.8357095718383789, 0.48808079957962036, -0.3868184983730316, 0.0057400865480303...
javascript/reference/global_objects/string/split/index.md
JavaScript - Global Objects - String - split - Examples - Using a custom splitter: An object with a `Symbol.split` method can be used as a splitter with custom behavior. The following example splits a string using an internal state consisting of an incrementing number: Example: const splitByNumber = { [Symbol.spl...
[ -0.4482026994228363, 0.43351563811302185, -0.8288389444351196, 0.2274683713912964, 0.3437327742576599, -0.6696352362632751, -0.48782363533973694, 0.20875070989131927, -0.5623239278793335, -0.01610201597213745, -1.15318763256073, 0.03501539304852486, -0.44124457240104675, -0.083914197981357...
javascript/reference/global_objects/string/blink/index.md
JavaScript - Global Objects - String - blink: Deprecated: This feature is no longer recommended. The `blink()` method of `String` values creates a string that embeds this string in a `<blink>` element (`<blink>str</blink>`), which used to cause a string to blink in old browsers. Note: All HTML wrapper methods are de...
[ -1.9422128200531006, 0.09590224921703339, -0.42807069420814514, -0.11992347985506058, -0.07817261666059494, -1.73421311378479, 1.6158429384231567, 0.768379807472229, -0.12450180947780609, 0.24184143543243408, -0.7392981052398682, 0.2242446094751358, 0.049497026950120926, -0.204969301819801...
javascript/reference/global_objects/string/blink/index.md
JavaScript - Global Objects - String - blink - Syntax: Example: blink()
[ -1.2148994207382202, 0.48015445470809937, -0.37701019644737244, -0.08777698129415512, -0.4494335353374481, -1.3719446659088135, 1.0943297147750854, 0.940438449382782, -0.18072442710399628, 0.2612608075141907, -0.7328006625175476, 0.17583049833774567, -0.7255150675773621, 0.2145656645298004...
javascript/reference/global_objects/string/blink/index.md
JavaScript - Global Objects - String - blink - Syntax - Parameters: None.
[ -1.1051325798034668, 0.5587881207466125, -0.688971221446991, -0.5168864727020264, -0.33418720960617065, -1.03279709815979, 1.0949448347091675, 1.121865153312683, -0.014946933835744858, -0.05039957910776138, -0.9958581924438477, -0.49492737650871277, -0.40564021468162537, 0.5031591057777405...
javascript/reference/global_objects/string/blink/index.md
JavaScript - Global Objects - String - blink - Syntax - Return value: A string beginning with a `<blink>` start tag, then the text `str`, and then a `</blink>` end tag.
[ -1.6568845510482788, 0.47654882073402405, 0.02214616909623146, -0.3485739529132843, -0.166876882314682, -0.800818920135498, 0.7522836923599243, 0.5769016146659851, -0.3624362051486969, 0.433030903339386, -0.6312998533248901, 0.3250744938850403, -0.4855705201625824, 0.8617164492607117, 0....
javascript/reference/global_objects/string/blink/index.md
JavaScript - Global Objects - String - blink - Examples - Using blink(): The code below creates an HTML string and then replaces the document's body with it: Example: const contentString = "Hello, world"; document.body.innerHTML = contentString.blink(); This will create the following HTML: Example: <blink>Hello,...
[ -1.3607056140899658, 0.359813392162323, 0.4485192894935608, 0.9453829526901245, 0.09055555611848831, -1.898414134979248, 0.030540164560079575, -0.45840248465538025, -0.7137398719787598, 0.14749546349048615, -0.6616058945655823, -0.04287320375442505, -0.4476979076862335, -0.2435883134603500...
javascript/reference/global_objects/encodeuricomponent/index.md
JavaScript - Global Objects - encodeURIComponent: The `encodeURIComponent()` function encodes a `URI` by replacing each instance of certain characters by one, two, three, or four escape sequences representing the `UTF-8` encoding of the character (will only be four escape sequences for characters composed of two surro...
[ -0.07292303442955017, -0.04827123135328293, -0.4001861810684204, 0.2764036953449249, -0.20035888254642487, -1.3758856058120728, 0.10943270474672318, 0.5417237877845764, -0.2630871534347534, -0.7363676428794861, -0.9211164712905884, 0.09547010809183121, 0.17976148426532745, 0.08617671579122...
javascript/reference/global_objects/encodeuricomponent/index.md
JavaScript - Global Objects - encodeURIComponent - Syntax: Example: encodeURIComponent(uriComponent)
[ 0.5564656257629395, 0.6554617881774902, -0.43013983964920044, 0.18280595541000366, -0.994219958782196, -1.5675774812698364, 0.25258180499076843, 1.1598576307296753, -0.29838594794273376, -0.7426707148551941, -0.5243259072303772, 0.3164365887641907, 0.6001507639884949, 0.28407222032546997, ...
javascript/reference/global_objects/encodeuricomponent/index.md
JavaScript - Global Objects - encodeURIComponent - Syntax - Parameters: - `uriComponent`: A string to be encoded as a URI component (a path, query string, fragment, etc.). Other values are converted to strings.
[ 0.6831800937652588, 0.2848982512950897, -0.224697083234787, 0.43021535873413086, -0.48480069637298584, -1.5206942558288574, 0.3077740967273712, 0.7840372920036316, 0.09849631041288376, -0.25369545817375183, -0.7475116848945618, -0.06415803730487823, 0.2548162043094635, 0.7788275480270386, ...
javascript/reference/global_objects/encodeuricomponent/index.md
JavaScript - Global Objects - encodeURIComponent - Syntax - Return value: A new string representing the provided `uriComponent` encoded as a URI component.
[ 0.034505344927310944, -0.026845240965485573, -0.3277428448200226, -0.044612396508455276, -0.7025535106658936, -1.7007577419281006, 0.5723890066146851, 1.3918404579162598, -0.17833371460437775, 0.03291443735361099, -0.6034684777259827, 0.5657272934913635, 0.4477420747280121, 1.3011547327041...
javascript/reference/global_objects/encodeuricomponent/index.md
JavaScript - Global Objects - encodeURIComponent - Syntax - Exceptions: - `URIError`: Thrown if `uriComponent` contains a lone surrogate.
[ -0.3330875337123871, 0.9496111869812012, -0.4115379750728607, 0.3807028830051422, -0.7274194955825806, -1.3956563472747803, -0.061885371804237366, 1.2284363508224487, -0.9765274524688721, -0.5751227140426636, -0.578531801700592, -0.4398761987686157, 0.23320342600345612, 0.26718321442604065...
javascript/reference/global_objects/encodeuricomponent/index.md
JavaScript - Global Objects - encodeURIComponent - Description: `encodeURIComponent()` is a function property of the global object. `encodeURIComponent()` uses the same encoding algorithm as described in `encodeURI()`. It escapes all characters except: Example: A–Z a–z 0–9 - _ . ! ~ * ' ( ) Compared to `encodeURI(...
[ -0.33091071248054504, 0.07050643861293793, -0.8384812474250793, 0.2728561460971832, -0.087265245616436, -1.849853515625, 0.2796087861061096, 0.2663555145263672, -0.28362783789634705, -0.2597258985042572, -0.8105846643447876, 0.1037491038441658, -0.12165028601884842, 0.2113785594701767, -...
javascript/reference/global_objects/encodeuricomponent/index.md
JavaScript - Global Objects - encodeURIComponent - Examples - Encoding for Content-Disposition and Link headers: The following example provides the special encoding required within UTF-8 `Content-Disposition` and `Link` server response header parameters (e.g., UTF-8 filenames): Example: const fileName = "my file(2)....
[ -0.8985382914543152, -0.6596410870552063, -0.15992842614650726, 0.2097022980451584, 0.007564909290522337, -1.0732123851776123, -0.011349113658070564, 0.14070351421833038, -0.2653049826622009, -0.4421064257621765, -0.7923856377601624, 0.09090214222669601, -0.7477936148643494, 0.435284286737...
javascript/reference/global_objects/encodeuricomponent/index.md
JavaScript - Global Objects - encodeURIComponent - Examples - Encoding for RFC3986: The more recent RFC3986 reserves `!`, `'`, `(`, `)`, and `*`, even though these characters have no formalized URI delimiting uses. The following function encodes a string for RFC3986-compliant URL component format. It also encodes `[` ...
[ -0.6614190936088562, 0.7299841642379761, -0.23734894394874573, -0.036516591906547546, -0.20535598695278168, -0.918001115322113, 0.4488154351711273, -0.30601197481155396, -0.22454878687858582, -0.648468554019928, -0.6142146587371826, 0.19618333876132965, -0.3674975633621216, 0.2248532027006...
javascript/reference/global_objects/encodeuricomponent/index.md
JavaScript - Global Objects - encodeURIComponent - Examples - Encoding a lone surrogate throws: A `URIError` will be thrown if one attempts to encode a surrogate which is not part of a high-low pair. For example: Example: // High-low pair OK encodeURIComponent("\uD800\uDFFF"); // "%F0%90%8F%BF" // Lone high-surroga...
[ -0.5141363739967346, 1.2756507396697998, -0.6970915198326111, 0.1468096375465393, -0.286712646484375, -0.8283001184463501, 0.5340040922164917, 1.0324032306671143, -1.2633216381072998, -0.4953919053077698, -0.9805426597595215, -0.257199764251709, 0.2109156996011734, 0.01405012235045433, -...
javascript/reference/global_objects/typeerror/index.md
JavaScript - Global Objects - TypeError: The `TypeError` object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type. A `TypeError` may be thrown when: - an operand or argument passed to a function is incompatible with the type expecte...
[ 0.18538732826709747, -0.05533178895711899, -0.534275233745575, 1.0066105127334595, 0.4877503216266632, -0.7835627794265747, -0.36068788170814514, 0.8711997270584106, 0.20459754765033722, -0.07711963355541229, -0.5214536190032959, -0.47656792402267456, 0.6324582099914551, 0.1165224015712738...
javascript/reference/global_objects/typeerror/index.md
JavaScript - Global Objects - TypeError - Constructor: - `TypeError()`: Creates a new `TypeError` object.
[ -0.8470986485481262, -0.2813953161239624, -0.6710310578346252, 0.027859799563884735, -0.11430402100086212, -1.0303558111190796, -0.7324203848838806, 1.4256260395050049, -0.5206642150878906, -0.6941767334938049, -0.5022820830345154, -0.6355369687080383, -0.049547240138053894, -0.01973119005...
javascript/reference/global_objects/typeerror/index.md
JavaScript - Global Objects - TypeError - Instance properties: Also inherits instance properties from its parent `Error`. These properties are defined on `TypeError.prototype` and shared by all `TypeError` instances. - `TypeError.prototype.constructor`: The constructor function that created the instance object. For ...
[ -0.23702655732631683, -0.49901583790779114, -0.6158206462860107, 0.47788989543914795, -0.0237832423299551, -1.252193808555603, 0.0425240620970726, 1.2429618835449219, 0.25754863023757935, -0.28666380047798157, -0.7693213820457458, -0.15866784751415253, -1.0693738460540771, 0.28836461901664...
javascript/reference/global_objects/typeerror/index.md
JavaScript - Global Objects - TypeError - Instance methods: Inherits instance methods from its parent `Error`.
[ -0.2310708463191986, -0.318923681974411, -0.6706377267837524, -0.14488117396831512, -0.4723049998283386, -1.6228851079940796, 0.6467011570930481, 1.1638062000274658, -0.6547327041625977, -1.2182177305221558, -0.6588520407676697, -0.15967804193496704, -0.5899158716201782, 0.5640549063682556...
javascript/reference/global_objects/typeerror/index.md
JavaScript - Global Objects - TypeError - Examples - Catching a TypeError: Example: try { null.f(); } catch (e) { console.log(e instanceof TypeError); // true console.log(e.message); // "null has no properties" console.log(e.name); // "TypeError" console.log(e.stack); // Stack of the error }
[ -0.5656379461288452, -0.23786993324756622, -0.5650214552879333, 0.5416938662528992, 0.16897696256637573, -0.9918196201324463, 0.5170730948448181, 0.9994297027587891, -0.4089818596839905, -0.4295150339603424, -0.08478878438472748, -0.6065877079963684, 0.16366466879844666, -0.306114017963409...
javascript/reference/global_objects/typeerror/index.md
JavaScript - Global Objects - TypeError - Examples - Creating a TypeError: Example: try { throw new TypeError("Hello"); } catch (e) { console.log(e instanceof TypeError); // true console.log(e.message); // "Hello" console.log(e.name); // "TypeError" console.log(e.stack); // Stack of the error }
[ -0.16164368391036987, -0.2539893686771393, -0.5326951742172241, 1.0431015491485596, 0.2911696434020996, -0.858407735824585, -0.6478046774864197, 0.8967834115028381, -0.39623942971229553, -0.6574141383171082, -0.27281954884529114, -0.2768271863460541, 0.45077094435691833, -0.197757884860038...
javascript/reference/global_objects/typeerror/typeerror/index.md
JavaScript - Global Objects - TypeError: The `TypeError()` constructor creates `TypeError` objects.
[ -0.6883369088172913, -0.0925278589129448, -0.49579235911369324, 0.16734860837459564, -0.3504713773727417, -1.078289270401001, -0.898940920829773, 1.159535527229309, -0.7515357732772827, -0.4218287467956543, -0.44996264576911926, -0.512766420841217, -0.30846476554870605, -0.2358172833919525...
javascript/reference/global_objects/typeerror/typeerror/index.md
JavaScript - Global Objects - TypeError - Syntax: Example: new TypeError() new TypeError(message) new TypeError(message, options) new TypeError(message, fileName) new TypeError(message, fileName, lineNumber) TypeError() TypeError(message) TypeError(message, options) TypeError(message, fileName) TypeError(message, fi...
[ 0.274204283952713, -0.1805240511894226, -0.5406007170677185, -0.004543574992567301, 0.2879685163497925, -0.8971853256225586, -0.3266649842262268, 0.44821107387542725, -0.6960744857788086, -0.5694146156311035, -0.5808867812156677, -1.1360833644866943, 0.48204874992370605, 0.6728362441062927...
javascript/reference/global_objects/typeerror/typeerror/index.md
JavaScript - Global Objects - TypeError - Syntax - Parameters: - `message` (optional): Human-readable description of the error - `options` (optional): An object that has the following properties: - `cause` (optional): A property indicating the specific cause of the error. When catching and re-throwing an error with ...
[ -0.3005114793777466, -0.8233121633529663, -1.0184292793273926, -0.36692991852760315, 0.257056325674057, -1.5793675184249878, 0.23229697346687317, 0.5809560418128967, -0.014631719328463078, -0.4330436885356903, -1.2676212787628174, -0.013690276071429253, -0.07309458404779434, 0.731904923915...
javascript/reference/global_objects/typeerror/typeerror/index.md
JavaScript - Global Objects - TypeError - Examples - Catching a TypeError: Example: try { null.f(); } catch (e) { console.log(e instanceof TypeError); // true console.log(e.message); // "null has no properties" console.log(e.name); // "TypeError" console.log(e.stack); // Stack of the error }
[ -0.5656379461288452, -0.23786993324756622, -0.5650214552879333, 0.5416938662528992, 0.16897696256637573, -0.9918196201324463, 0.5170730948448181, 0.9994297027587891, -0.4089818596839905, -0.4295150339603424, -0.08478878438472748, -0.6065877079963684, 0.16366466879844666, -0.306114017963409...
javascript/reference/global_objects/typeerror/typeerror/index.md
JavaScript - Global Objects - TypeError - Examples - Creating a TypeError: Example: try { throw new TypeError("Hello"); } catch (e) { console.log(e instanceof TypeError); // true console.log(e.message); // "Hello" console.log(e.name); // "TypeError" console.log(e.stack); // Stack of the error }
[ -0.16164368391036987, -0.2539893686771393, -0.5326951742172241, 1.0431015491485596, 0.2911696434020996, -0.858407735824585, -0.6478046774864197, 0.8967834115028381, -0.39623942971229553, -0.6574141383171082, -0.27281954884529114, -0.2768271863460541, 0.45077094435691833, -0.197757884860038...