diff --git a/files/en-us/web/api/document/cookie/index.html b/files/en-us/web/api/document/cookie/index.html
index 4bb58429663b882..7557fcad638a117 100644
--- a/files/en-us/web/api/document/cookie/index.html
+++ b/files/en-us/web/api/document/cookie/index.html
@@ -216,7 +216,7 @@
Example #5: Check a cookie existence
console.log('The cookie "reader" exists (ES5)')
}
-//ES2016
+//ES2015
if (document.cookie.split(';').some((item) => item.trim().startsWith('reader='))) {
console.log('The cookie "reader" exists (ES6)')
@@ -234,7 +234,7 @@ Example #6: Check th
console.log('The cookie "reader" has "1" for value')
}
-//ES2016
+//ES2016 (uses includes() introduced in ES2016)
if (document.cookie.split(';').some((item) => item.includes('reader=1'))) {
console.log('The cookie "reader" has "1" for value')